ImmutableSortedDictionary<TKey,TValue>.ValueRef(TKey) Method

Definition

Returns a read-only reference to the value associated with the provided key.

C#
public ref readonly TValue ValueRef(TKey key);

Parameters

key
TKey

Key of the entry to be looked up.

Returns

TValue

A read-only reference to the value associated with the provided key.

Exceptions

The key is not present.

Applies to

Produkt Verzie
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)