FrozenDictionary<TKey,TValue>.GetValueRefOrNullRef(TKey) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets either a reference to a TValue
in the dictionary or a null
reference if the key does not exist in the dictionary.
public:
TValue& ^ GetValueRefOrNullRef(TKey key);
public ref readonly TValue GetValueRefOrNullRef (TKey key);
member this.GetValueRefOrNullRef : 'Key -> 'Value
Public Function GetValueRefOrNullRef (key As TKey) As TValue
Parameters
- key
- TKey
The key used for lookup.
Returns
TValue
A reference to a TValue
in the dictionary or a null
reference if the key does not exist in the dictionary.
Remarks
The null
reference can be detected by calling IsNullRef<T>(T).
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.