System.Collections.Generic Ad Alanı
Genel koleksiyonları tanımlayan arabirimler ve sınıflar, kullanıcıların daha iyi tür güvenliği ve genel olarak belirlenmiş olmayan türsüz koleksiyonlar sağlayan kesin türü belirtilmiş koleksiyonlar oluşturmalarına olanak tanır. Contains interfaces and classes that define generic collections, which allow users to create strongly typed collections that provide better type safety and performance than non-generic strongly typed collections.
Sınıflar
| CollectionExtensions |
Genel Koleksiyonlar için uzantı yöntemleri sağlar.Provides extension methods for generic collections. |
| Comparer<T> |
Genel arabirimin uygulamaları için bir temel sınıf sağlar IComparer<T> .Provides a base class for implementations of the IComparer<T> generic interface. |
| Dictionary<TKey,TValue>.KeyCollection |
İçindeki anahtarların koleksiyonunu temsil eder Dictionary<TKey,TValue> .Represents the collection of keys in a Dictionary<TKey,TValue>. Bu sınıf devralınamaz.This class cannot be inherited. |
| Dictionary<TKey,TValue>.ValueCollection |
İçindeki değerlerin koleksiyonunu temsil eder Dictionary<TKey,TValue> .Represents the collection of values in a Dictionary<TKey,TValue>. Bu sınıf devralınamaz.This class cannot be inherited. |
| Dictionary<TKey,TValue> |
Anahtar ve değer koleksiyonunu temsil eder.Represents a collection of keys and values. |
| EqualityComparer<T> |
Genel arabirimin uygulamaları için bir temel sınıf sağlar IEqualityComparer<T> .Provides a base class for implementations of the IEqualityComparer<T> generic interface. |
| HashSet<T> |
Bir değer kümesini temsil eder.Represents a set of values. |
| KeyedByTypeCollection<TItem> |
Öğeleri anahtar olarak işlev gösteren türler olan bir koleksiyon sağlar.Provides a collection whose items are types that serve as keys. |
| KeyNotFoundException |
Koleksiyondaki bir öğeye erişmek için belirtilen anahtar koleksiyondaki herhangi bir anahtarla eşleşmediği zaman oluşturulan özel durum.The exception that is thrown when the key specified for accessing an element in a collection does not match any key in the collection. |
| KeyValuePair |
Yapının örneklerini oluşturur KeyValuePair<TKey,TValue> .Creates instances of the KeyValuePair<TKey,TValue> struct. |
| LinkedList<T> |
, Birbirine bağlı bir listeyi temsil eder.Represents a doubly linked list. |
| LinkedListNode<T> |
İçindeki bir düğümü temsil eder LinkedList<T> .Represents a node in a LinkedList<T>. Bu sınıf devralınamaz.This class cannot be inherited. |
| List<T> |
Dizin tarafından erişilebilen, türü kesin belirlenmiş bir nesne listesini temsil eder.Represents a strongly typed list of objects that can be accessed by index. Listeleri aramak, sıralamak ve işlemek için yöntemler sağlar.Provides methods to search, sort, and manipulate lists. |
| PriorityQueue<TElement,TPriority>.UnorderedItemsCollection | |
| PriorityQueue<TElement,TPriority> | |
| Queue<T> |
İlk, ilk çıkar nesne koleksiyonunu temsil eder.Represents a first-in, first-out collection of objects. |
| ReferenceEqualityComparer |
IEqualityComparer<T> ReferenceEquals(Object, Object) Equals(Object) İki nesne örneği karşılaştırılırken değer eşitlik () yerine başvuru eşitliği () kullanır.An IEqualityComparer<T> that uses reference equality (ReferenceEquals(Object, Object)) instead of value equality (Equals(Object)) when comparing two object instances. |
| SortedDictionary<TKey,TValue>.KeyCollection |
İçindeki anahtarların koleksiyonunu temsil eder SortedDictionary<TKey,TValue> .Represents the collection of keys in a SortedDictionary<TKey,TValue>. Bu sınıf devralınamaz.This class cannot be inherited. |
| SortedDictionary<TKey,TValue>.ValueCollection |
İçindeki değerlerin koleksiyonunu temsil eder SortedDictionary<TKey,TValue> .Represents the collection of values in a SortedDictionary<TKey,TValue>. Bu sınıf devralınamaz.This class cannot be inherited. |
| SortedDictionary<TKey,TValue> |
Anahtar üzerinde sıralanan anahtar/değer çiftleri koleksiyonunu temsil eder.Represents a collection of key/value pairs that are sorted on the key. |
| SortedList<TKey,TValue> |
İlişkili uygulamaya göre anahtara göre sıralanan anahtar/değer çiftleri koleksiyonunu temsil eder IComparer<T> .Represents a collection of key/value pairs that are sorted by key based on the associated IComparer<T> implementation. |
| SortedSet<T> |
Sıralanmış sırada tutulan bir nesne koleksiyonunu temsil eder.Represents a collection of objects that is maintained in sorted order. |
| Stack<T> |
Aynı belirtilen türden örneklerin en son ilk çıkar (LıFO) bir değişken boyutunu temsil eder.Represents a variable size last-in-first-out (LIFO) collection of instances of the same specified type. |
| SynchronizedCollection<T> |
Öğesi olarak genel parametresi tarafından belirtilen bir türün nesnelerini içeren bir iş parçacığı güvenli koleksiyonu sağlar.Provides a thread-safe collection that contains objects of a type specified by the generic parameter as elements. |
| SynchronizedKeyedCollection<K,T> |
Genel bir parametre tarafından belirtilen ve anahtarlara göre gruplanan bir türün nesnelerini içeren bir iş parçacığı güvenli koleksiyonu sağlar.Provides a thread-safe collection that contains objects of a type specified by a generic parameter and that are grouped by keys. |
| SynchronizedReadOnlyCollection<T> |
Öğe olarak genel parametre tarafından belirtilen bir türün nesnelerini içeren, iş parçacığı açısından güvenli, salt okunurdur bir koleksiyon sağlar.Provides a thread-safe, read-only collection that contains objects of a type specified by the generic parameter as elements. |
Yapılar
Arabirimler
| IAsyncEnumerable<T> |
Belirtilen türdeki değerler üzerinde zaman uyumsuz yineleme sağlayan bir Numaralandırıcı gösterir.Exposes an enumerator that provides asynchronous iteration over values of a specified type. |
| IAsyncEnumerator<T> |
Genel bir koleksiyon üzerinde basit bir zaman uyumsuz yinelemeyi destekler.Supports a simple asynchronous iteration over a generic collection. |
| ICollection<T> |
Genel koleksiyonları işlemek için yöntemleri tanımlar.Defines methods to manipulate generic collections. |
| IComparer<T> |
İki nesneyi karşılaştırmak için bir türün uyguladığı bir yöntemi tanımlar.Defines a method that a type implements to compare two objects. |
| IDictionary<TKey,TValue> |
Anahtar/değer çiftlerinin genel koleksiyonunu temsil eder.Represents a generic collection of key/value pairs. |
| IEnumerable<T> |
Belirtilen türde bir koleksiyon üzerinde basit bir yinelemeyi destekleyen Numaralandırıcı gösterir.Exposes the enumerator, which supports a simple iteration over a collection of a specified type. |
| IEnumerator<T> |
Genel bir koleksiyon üzerinde basit bir yinelemeyi destekler.Supports a simple iteration over a generic collection. |
| IEqualityComparer<T> |
Nesnelerin eşitlik için karşılaştırmasını destekleyecek yöntemleri tanımlar.Defines methods to support the comparison of objects for equality. |
| IList<T> |
Dizin tarafından tek tek erişilebilen nesne koleksiyonunu temsil eder.Represents a collection of objects that can be individually accessed by index. |
| IReadOnlyCollection<T> |
Türü kesin belirlenmiş, salt tanımlı bir öğe koleksiyonunu temsil eder.Represents a strongly-typed, read-only collection of elements. |
| IReadOnlyDictionary<TKey,TValue> |
Anahtar/değer çiftlerinin genel bir salt okuma koleksiyonunu temsil eder.Represents a generic read-only collection of key/value pairs. |
| IReadOnlyList<T> |
Dizin tarafından erişilebilen öğelerin salt okunurdur koleksiyonunu temsil eder.Represents a read-only collection of elements that can be accessed by index. |
| IReadOnlySet<T> |
Bir küme için salt okunur bir soyutlama sağlar.Provides a readonly abstraction of a set. |
| ISet<T> |
Küme soyutlaması için temel arabirimi sağlar.Provides the base interface for the abstraction of sets. |
Açıklamalar
Genel koleksiyon türlerinin birçoğu genel olmayan türlerin doğrudan analoglarından.Many of the generic collection types are direct analogs of nongeneric types. Dictionary<TKey,TValue> , genel bir sürümüdür Hashtable ; KeyValuePair<TKey,TValue> yerine numaralandırma için genel yapıyı kullanır DictionaryEntry .Dictionary<TKey,TValue> is a generic version of Hashtable; it uses the generic structure KeyValuePair<TKey,TValue> for enumeration instead of DictionaryEntry. List<T> , öğesinin genel bir sürümüdür ArrayList .List<T> is a generic version of ArrayList. Genel Queue<T> ve Stack<T> olmayan sürümlere karşılık gelen sınıflar vardır.There are generic Queue<T> and Stack<T> classes that correspond to the nongeneric versions. Genel ve genel olmayan sürümleri vardır SortedList<TKey,TValue> .There are generic and nongeneric versions of SortedList<TKey,TValue>. Her iki sürüm de bir sözlüğün ve listenin hybrilar.Both versions are hybrids of a dictionary and a list. SortedDictionary<TKey,TValue>Genel sınıf saf bir sözlüktür ve genel olmayan bir karşılığı yoktur.The SortedDictionary<TKey,TValue> generic class is a pure dictionary and has no nongeneric counterpart. LinkedList<T>Genel sınıf, doğru bir bağlantılı listesidir ve genel olmayan bir karşılığı yoktur.The LinkedList<T> generic class is a true linked list and has no nongeneric counterpart.