IDictionary<TKey,TValue>.AsReadOnly Method
Definition
Returns the dictionary as read-only dictionary.
Delphi
function AsReadOnly: IReadOnlyDictionary<TKey,TValue>
Returns
IReadOnlyDictionary<TKey, TValue>
The dictionary as read-only dictionary.
Remarks
This method will not perform a copy but will return the same instance as IReadOnlyDictionary<TKey,TValue> .