init commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace Org.BouncyCastle.Utilities.Collections;
|
||||
|
||||
public class UnmodifiableSetProxy : UnmodifiableSet
|
||||
{
|
||||
private readonly ISet s;
|
||||
|
||||
public override int Count => s.Count;
|
||||
|
||||
public override bool IsEmpty => s.IsEmpty;
|
||||
|
||||
public override bool IsFixedSize => s.IsFixedSize;
|
||||
|
||||
public override bool IsSynchronized => s.IsSynchronized;
|
||||
|
||||
public override object SyncRoot => s.SyncRoot;
|
||||
|
||||
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 IEnumerator GetEnumerator()
|
||||
{
|
||||
return s.GetEnumerator();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user