2 using System.Collections.Generic;
4 namespace SharpCompress
6 internal class ReadOnlyCollection<T> : ICollection<T>
8 private ICollection<T> collection;
10 public ReadOnlyCollection(ICollection<T> collection)
12 this.collection = collection;
15 public void Add(T item)
17 throw new NotImplementedException();
22 throw new NotImplementedException();
25 public bool Contains(T item)
27 return collection.Contains(item);
30 public void CopyTo(T[] array, int arrayIndex)
32 collection.CopyTo(array, arrayIndex);
37 get { return collection.Count; }
40 public bool IsReadOnly
45 public bool Remove(T item)
47 throw new NotImplementedException();
50 public IEnumerator<T> GetEnumerator()
52 return collection.GetEnumerator();
55 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
57 throw new NotImplementedException();