Method UnmodifiableMap
UnmodifiableMap<TValue>(CharArrayMap<TValue>)
Returns an unmodifiable CharArrayMap<TValue>. This allows to provide unmodifiable views of internal map for "read-only" use.
Declaration
public static CharArrayMap<TValue> UnmodifiableMap<TValue>(CharArrayMap<TValue> map)
Parameters
Type | Name | Description |
---|---|---|
CharArrayMap<TValue> | map | a map for which the unmodifiable map is returned. |
Returns
Type | Description |
---|---|
CharArrayMap<TValue> | an new unmodifiable CharArrayMap<TValue>. |
Type Parameters
Name | Description |
---|---|
TValue |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | if the given map is |