SortedDictionary<TKey,TValue>.KeyCollection Constructor
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Inicializa una nueva instancia de la SortedDictionary<TKey,TValue>.KeyCollection clase que refleja las claves del especificado SortedDictionary<TKey,TValue>.
public:
KeyCollection(System::Collections::Generic::SortedDictionary<TKey, TValue> ^ dictionary);
public KeyCollection(System.Collections.Generic.SortedDictionary<TKey,TValue> dictionary);
new System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection : System.Collections.Generic.SortedDictionary<'Key, 'Value> -> System.Collections.Generic.SortedDictionary<'Key, 'Value>.KeyCollection
Public Sub New (dictionary As SortedDictionary(Of TKey, TValue))
Parámetros
- dictionary
- SortedDictionary<TKey,TValue>
cuyas SortedDictionary<TKey,TValue> claves se reflejan en el nuevo SortedDictionary<TKey,TValue>.KeyCollection.
Excepciones
dictionary es null.
Comentarios
no SortedDictionary<TKey,TValue>.KeyCollection es una copia estática; en su lugar, SortedDictionary<TKey,TValue>.KeyCollection hace referencia a las claves del original SortedDictionary<TKey,TValue>. Por lo tanto, los cambios en el SortedDictionary<TKey,TValue> objeto continúan reflejados en .SortedDictionary<TKey,TValue>.KeyCollection
Este constructor es una operación de O(1).