CollectionsMarshal.GetValueRefOrNullRef 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| GetValueRefOrNullRef<TKey,TValue,TAlternateKey>(Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>, TAlternateKey) |
Dictionary<TKey,TValue>
|
| GetValueRefOrNullRef<TKey,TValue>(Dictionary<TKey,TValue>, TKey) |
Dictionary<TKey,TValue>
|
GetValueRefOrNullRef<TKey,TValue,TAlternateKey>(Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>, TAlternateKey)
- Source:
- CollectionsMarshal.cs
Dictionary<TKey,TValue>
TValue 대한 ref 또는 dictionary없는 경우 ref null을 가져옵니다.
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
사전의 조회에 대한 대체 키의 형식입니다.
매개 변수
TValue 참조를 가져올 사전입니다.
- key
- TAlternateKey
조회에 사용되는 키입니다.
반환
Dictionary<TKey,TValue>
TValue 대한 참조이거나 dictionary.에 없는 경우 참조 null.
설명
ref TValue 사용 중인 동안에는 항목을 Dictionary<TKey,TValue> 추가하거나 제거해서는 안 됩니다.
참조 nullIsNullRef<T>(T)호출하여 검색할 수 있습니다.
적용 대상
GetValueRefOrNullRef<TKey,TValue>(Dictionary<TKey,TValue>, TKey)
- Source:
- CollectionsMarshal.cs
- Source:
- CollectionsMarshal.cs
- Source:
- CollectionsMarshal.cs
- Source:
- CollectionsMarshal.cs
Dictionary<TKey,TValue>
TValue 대한 참조 또는 dictionary없는 경우 참조 null 가져옵니다.
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>
TValue 참조를 가져올 사전입니다.
- key
- TKey
조회에 사용되는 키입니다.
반환
Dictionary<TKey,TValue>
TValue 대한 참조이거나 dictionary.에 없는 경우 참조 null.
설명
ref TValue 사용 중인 동안에는 항목을 Dictionary<TKey,TValue> 추가하거나 제거해서는 안 됩니다.
참조 nullSystem.Runtime.CompilerServices.Unsafe.IsNullRef<T>(T)호출하여 검색할 수 있습니다.