Fix build_init vcxproj to correctly detect changes in config.h.
[mono.git] / mcs / class / System.IO.Compression / SharpCompress / ReadOnlyCollection.cs
1 using System;
2 using System.Collections.Generic;
3
4 namespace SharpCompress
5 {
6     internal class ReadOnlyCollection<T> : ICollection<T>
7     {
8         private ICollection<T> collection;
9
10         public ReadOnlyCollection(ICollection<T> collection)
11         {
12             this.collection = collection;
13         }
14
15         public void Add(T item)
16         {
17             throw new NotImplementedException();
18         }
19
20         public void Clear()
21         {
22             throw new NotImplementedException();
23         }
24
25         public bool Contains(T item)
26         {
27             return collection.Contains(item);
28         }
29
30         public void CopyTo(T[] array, int arrayIndex)
31         {
32             collection.CopyTo(array, arrayIndex);
33         }
34
35         public int Count
36         {
37             get { return collection.Count; }
38         }
39
40         public bool IsReadOnly
41         {
42             get { return true; }
43         }
44
45         public bool Remove(T item)
46         {
47             throw new NotImplementedException();
48         }
49
50         public IEnumerator<T> GetEnumerator()
51         {
52             return collection.GetEnumerator();
53         }
54
55         System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
56         {
57             throw new NotImplementedException();
58         }
59     }
60 }