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.
68 lines
1.3 KiB
68 lines
1.3 KiB
#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 abstract class UnmodifiableDictionary |
|
: IDictionary |
|
{ |
|
protected UnmodifiableDictionary() |
|
{ |
|
} |
|
|
|
public virtual void Add(object k, object v) |
|
{ |
|
throw new NotSupportedException(); |
|
} |
|
|
|
public virtual void Clear() |
|
{ |
|
throw new NotSupportedException(); |
|
} |
|
|
|
public abstract bool Contains(object k); |
|
|
|
public abstract void CopyTo(Array array, int index); |
|
|
|
public abstract int Count { get; } |
|
|
|
IEnumerator IEnumerable.GetEnumerator() |
|
{ |
|
return GetEnumerator(); |
|
} |
|
|
|
public abstract IDictionaryEnumerator GetEnumerator(); |
|
|
|
public virtual void Remove(object k) |
|
{ |
|
throw new NotSupportedException(); |
|
} |
|
|
|
public abstract bool IsFixedSize { get; } |
|
|
|
public virtual bool IsReadOnly |
|
{ |
|
get { return true; } |
|
} |
|
|
|
public abstract bool IsSynchronized { get; } |
|
|
|
public abstract object SyncRoot { get; } |
|
|
|
public abstract ICollection Keys { get; } |
|
|
|
public abstract ICollection Values { get; } |
|
|
|
public virtual object this[object k] |
|
{ |
|
get { return GetValue(k); } |
|
set { throw new NotSupportedException(); } |
|
} |
|
|
|
protected abstract object GetValue(object k); |
|
} |
|
} |
|
#pragma warning restore |
|
#endif
|
|
|