StringKeyedDictionaryTValueGetValueOrDefault(ReadOnlySpanChar) Method

Tries to get the value from the dictionary for the given key.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public TValue GetValueOrDefault(
	ReadOnlySpan<char> key
)

Parameters

key  ReadOnlySpanChar
The key whose value to get.

Return Value

TValue
The found value or the default value of TValue if key was not found in the dictionary.

Implements

IStringKeyedDictionaryTValueGetValueOrDefault(ReadOnlySpanChar)
IStringKeyedReadOnlyDictionaryTValueGetValueOrDefault(ReadOnlySpanChar)

Remarks

  Note

This member is available only in .NET Core 2.1/.NET Standard 2.1 and above.

See Also