ImmutableDictionary<TKey,TValue>.Builder.GetValueOrDefault 메서드

정의

오버로드

GetValueOrDefault(TKey, TValue)

일치하는 키가 사전에 있는 경우 지정된 키의 값을 가져옵니다.

GetValueOrDefault(TKey)

일치하는 키가 사전에 있는 경우 지정된 키의 값을 가져옵니다.

GetValueOrDefault(TKey, TValue)

Source:
ImmutableDictionary_2.Builder.cs
Source:
ImmutableDictionary_2.Builder.cs
Source:
ImmutableDictionary_2.Builder.cs

일치하는 키가 사전에 있는 경우 지정된 키의 값을 가져옵니다.

public:
 TValue GetValueOrDefault(TKey key, TValue defaultValue);
public TValue GetValueOrDefault (TKey key, TValue defaultValue);
member this.GetValueOrDefault : 'Key * 'Value -> 'Value
Public Function GetValueOrDefault (key As TKey, defaultValue As TValue) As TValue

매개 변수

key
TKey

검색할 키입니다.

defaultValue
TValue

일치하는 키가 사전에 없는 경우에 반환할 기본값입니다.

반환

TValue

키의 값입니다. 일치하는 키가 없는 경우 defaultValue입니다.

적용 대상

GetValueOrDefault(TKey)

Source:
ImmutableDictionary_2.Builder.cs
Source:
ImmutableDictionary_2.Builder.cs
Source:
ImmutableDictionary_2.Builder.cs

일치하는 키가 사전에 있는 경우 지정된 키의 값을 가져옵니다.

public:
 TValue GetValueOrDefault(TKey key);
public TValue GetValueOrDefault (TKey key);
public TValue? GetValueOrDefault (TKey key);
member this.GetValueOrDefault : 'Key -> 'Value
Public Function GetValueOrDefault (key As TKey) As TValue

매개 변수

key
TKey

검색할 키입니다.

반환

TValue

키의 값입니다. 일치하는 키가 없는 경우 default(TValue)입니다.

적용 대상