You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1010 B
60 lines
1010 B
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) |
|
#pragma warning disable |
|
using System; |
|
using System.Collections; |
|
|
|
namespace BestHTTP.SecureProtocol.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; } |
|
} |
|
} |
|
} |
|
#pragma warning restore |
|
#endif
|
|
|