summary refs log tree commit diff
path: root/crypto/src/util/collections/UnmodifiableSetProxy.cs
blob: e119e29578eb002a8c62f178d21e967be45476bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
using System.Collections;

namespace Org.BouncyCastle.Utilities.Collections
{
	public class UnmodifiableSetProxy
		: UnmodifiableSet
	{
		private readonly ISet s;

		public UnmodifiableSetProxy (ISet s)
		{
			this.s = s;
		}

		public override bool Contains(object o)
		{
			return s.Contains(o);
		}

		public override void CopyTo(Array array, int index)
		{
			s.CopyTo(array, index);
		}

		public override int Count
		{
			get { return s.Count; }
		}

		public override IEnumerator GetEnumerator()
		{
			return s.GetEnumerator();
		}

		public override bool IsEmpty
		{
			get { return s.IsEmpty; }
		}

		public override bool IsFixedSize
		{
			get { return s.IsFixedSize; }
		}

		public override bool IsSynchronized
		{
			get { return s.IsSynchronized; }
		}

		public override object SyncRoot
		{
			get { return s.SyncRoot; }
		}
	}
}