CollectionsMarshal.GetValueRefOrNullRef 메서드

정의

오버로드

Name Description
GetValueRefOrNullRef<TKey,TValue,TAlternateKey>(Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>, TAlternateKey)

에 있는 ref TValueDictionary<TKey,TValue> 또는 ref null이 없는 경우 참조 null을 dictionary가져옵니다.

GetValueRefOrNullRef<TKey,TValue>(Dictionary<TKey,TValue>, TKey)

에 있는 TValue 참조 또는 에 Dictionary<TKey,TValue> 없는 경우 참조 nulldictionary가져옵니다.

GetValueRefOrNullRef<TKey,TValue,TAlternateKey>(Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>, TAlternateKey)

Source:
CollectionsMarshal.cs
Source:
CollectionsMarshal.cs
Source:
CollectionsMarshal.cs

에 있는 ref TValueDictionary<TKey,TValue> 또는 ref null이 없는 경우 참조 null을 dictionary가져옵니다.

public:
generic <typename TKey, typename TValue, typename TAlternateKey>
 static TValue % GetValueRefOrNullRef(System::Collections::Generic::Dictionary<TKey, TValue>::AlternateLookup<TAlternateKey> dictionary, TAlternateKey key);
public static ref TValue GetValueRefOrNullRef<TKey,TValue,TAlternateKey>(System.Collections.Generic.Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey> dictionary, TAlternateKey key) where TAlternateKey : allows ref struct;
static member GetValueRefOrNullRef : System.Collections.Generic.Dictionary<'Key, 'Value>.AlternateLookup<'AlternateKey> * 'AlternateKey -> 'Value
Public Shared Function GetValueRefOrNullRef(Of TKey, TValue, TAlternateKey) (dictionary As Dictionary(Of TKey, TValue).AlternateLookup(Of TAlternateKey), key As TAlternateKey) As TValue

형식 매개 변수

TKey

사전에 있는 키의 형식입니다.

TValue

사전에 있는 값의 형식입니다.

TAlternateKey

사전의 조회에 대한 대체 키의 형식입니다.

매개 변수

dictionary
Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>

ref TValue 를 가져올 사전입니다.

key
TAlternateKey

조회에 사용되는 키입니다.

반품

TValue

.에 없는 경우 in 또는 Dictionary<TKey,TValue> 참조에 dictionary대한 참조 TValuenull 입니다.

설명

참조 TValue 가 사용 중인 동안에는 항목을 추가하거나 제거 Dictionary<TKey,TValue> 해서는 안 됩니다.

참조 null 를 호출 IsNullRef<T>(T)하여 검색할 수 있습니다.

적용 대상

GetValueRefOrNullRef<TKey,TValue>(Dictionary<TKey,TValue>, TKey)

Source:
CollectionsMarshal.cs
Source:
CollectionsMarshal.cs
Source:
CollectionsMarshal.cs
Source:
CollectionsMarshal.cs
Source:
CollectionsMarshal.cs

에 있는 TValue 참조 또는 에 Dictionary<TKey,TValue> 없는 경우 참조 nulldictionary가져옵니다.

public:
generic <typename TKey, typename TValue>
 static TValue % GetValueRefOrNullRef(System::Collections::Generic::Dictionary<TKey, TValue> ^ dictionary, TKey key);
public static ref TValue GetValueRefOrNullRef<TKey,TValue>(System.Collections.Generic.Dictionary<TKey,TValue> dictionary, TKey key);
static member GetValueRefOrNullRef : System.Collections.Generic.Dictionary<'Key, 'Value> * 'Key -> 'Value
Public Shared Function GetValueRefOrNullRef(Of TKey, TValue) (dictionary As Dictionary(Of TKey, TValue), key As TKey) As TValue

형식 매개 변수

TKey

키의 형식입니다.

TValue

값의 형식입니다.

매개 변수

dictionary
Dictionary<TKey,TValue>

ref TValue 를 가져올 사전입니다.

key
TKey

조회에 사용되는 키입니다.

반품

TValue

.에 없는 경우 in 또는 Dictionary<TKey,TValue> 참조에 dictionary대한 참조 TValuenull 입니다.

설명

참조 TValue 가 사용 중인 동안에는 항목을 추가하거나 제거 Dictionary<TKey,TValue> 해서는 안 됩니다.

참조 null 를 호출 System.Runtime.CompilerServices.Unsafe.IsNullRef<T>(T)하여 검색할 수 있습니다.

적용 대상