Method TryRemove
- Namespace
- DisCatSharp.Common
- Assembly
- DisCatSharp.Common.dll
TryRemove(string, out TValue?)
Attempts to remove a value corresponding to the supplied key from this dictionary.
public bool TryRemove(string key, out TValue? value)
Parameters
key
stringKey to remove the value for.
value
TValueRemoved value.
Returns
- bool
Whether the operation was successful.
TryRemove(ReadOnlySpan<char>, out TValue?)
Attempts to remove a value corresponding to the supplied key from this dictionary.
public bool TryRemove(ReadOnlySpan<char> key, out TValue? value)
Parameters
key
ReadOnlySpan<char>Key to remove the value for.
value
TValueRemoved value.
Returns
- bool
Whether the operation was successful.