CollectionExtensions Classe

Definição

Fornece métodos de extensão para coleções genéricas.Provides extension methods for generic collections.

public ref class CollectionExtensions abstract sealed
public static class CollectionExtensions
type CollectionExtensions = class
Public Module CollectionExtensions
Herança
CollectionExtensions

Métodos

GetDefaultAssets(IEnumerable<RuntimeAssetGroup>)

Obtém uma enumeração de ativos em que cada ativo tem um runtime vazio.Gets an enumeration of assets where each asset has an empty runtime.

GetDefaultGroup(IEnumerable<RuntimeAssetGroup>)

Obtém o primeiro RuntimeAssetGroup com um Runtime vazio.Gets the first RuntimeAssetGroup with an empty Runtime.

GetDefaultRuntimeFileAssets(IEnumerable<RuntimeAssetGroup>)

Obtém uma enumeração de RuntimeFile em que cada valor tem um runtime vazio.Gets an enumeration of RuntimeFile where each value has an empty runtime.

GetRuntimeAssets(IEnumerable<RuntimeAssetGroup>, String)

Obtém uma enumeração de ativos em que o valor de cada ativo é igual a runtime.Gets an enumeration of assets where each asset's value equals runtime.

GetRuntimeFileAssets(IEnumerable<RuntimeAssetGroup>, String)

Obtém uma enumeração de RuntimeFile em que o Runtime de cada valor é igual a runtime.Gets an enumeration of RuntimeFile where each value's Runtime equals runtime.

GetRuntimeGroup(IEnumerable<RuntimeAssetGroup>, String)

Obtém o primeiro RuntimeAssetGroup em que Runtime corresponde a runtime.Gets the first RuntimeAssetGroup where Runtime matches runtime.

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

Tenta obter o valor associado ao key especificado no dictionary.Tries to get the value associated with the specified key in the dictionary.

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

Tenta obter o valor associado à chave especificada no dictionary.Tries to get the value associated with the specified key in the dictionary.

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

Tenta remover o valor com o key especificado do dictionary.Tries to remove the value with the specified key from the dictionary.

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

Tenta adicionar o key e o value especificados ao dictionary.Tries to add the specified key and value to the dictionary.

Aplica-se a