CollectionExtensions 클래스

정의

제네릭 컬렉션에 대한 확장 메서드를 제공합니다.

public ref class CollectionExtensions abstract sealed
public static class CollectionExtensions
type CollectionExtensions = class
Public Module CollectionExtensions
상속
CollectionExtensions

메서드

AddRange<T>(List<T>, ReadOnlySpan<T>)

지정된 범위의 요소를 의 List<T>끝에 추가합니다.

AsReadOnly<T>(IList<T>)

지정된 목록에 대한 읽기 전용 ReadOnlyCollection<T> 래퍼를 반환합니다.

AsReadOnly<TKey,TValue>(IDictionary<TKey,TValue>)

현재 사전에 대한 읽기 전용 ReadOnlyDictionary<TKey,TValue> 래퍼를 반환합니다.

CopyTo<T>(List<T>, Span<T>)

전체 List<T> 를 범위에 복사합니다.

GetDefaultAssets(IEnumerable<RuntimeAssetGroup>)

각 자산에 빈 런타임이 있는 자산의 열거형을 가져옵니다.

GetDefaultGroup(IEnumerable<RuntimeAssetGroup>)

Runtime이 있는 첫 번째 RuntimeAssetGroup을 가져옵니다.

GetDefaultRuntimeFileAssets(IEnumerable<RuntimeAssetGroup>)

각 값에 빈 런타임이 있는 RuntimeFile의 열거형을 가져옵니다.

GetRuntimeAssets(IEnumerable<RuntimeAssetGroup>, String)

각 자산의 값이 runtime과 같은 자산의 열거형을 가져옵니다.

GetRuntimeFileAssets(IEnumerable<RuntimeAssetGroup>, String)

각 값의 Runtimeruntime과 같은 RuntimeFile의 열거형을 가져옵니다.

GetRuntimeGroup(IEnumerable<RuntimeAssetGroup>, String)

Runtimeruntime과 일치하는 첫 번째 RuntimeAssetGroup을 가져옵니다.

GetValueOrDefault<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>, TKey)

dictionary에서 지정된 key과(와) 연결된 값을 가져오려고 시도합니다.

GetValueOrDefault<TKey,TValue>(IReadOnlyDictionary<TKey,TValue>, TKey, TValue)

dictionary에서 지정된 key과(와) 연결된 값을 가져오려고 시도합니다.

InsertRange<T>(List<T>, Int32, ReadOnlySpan<T>)

범위 List<T> 의 요소를 지정된 인덱스의 에 삽입합니다.

Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)

dictionary에서 지정된 key을(를) 사용하여 값 제거하려고 시도합니다.

TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)

지정된 keyvalue을(를) dictionary에 추가하려고 시도합니다.

적용 대상