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

정의

오버로드

Name Description
GetValueOrDefault(TKey, TValue)

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

GetValueOrDefault(TKey)

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

GetValueOrDefault(TKey, TValue)

Source:
ImmutableDictionary_2.Builder.cs
Source:
ImmutableDictionary_2.Builder.cs
Source:
ImmutableDictionary_2.Builder.cs
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
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) 일치하는 키를 찾을 수 없는 경우

적용 대상