CommandCollection - класс

Represents an collection of Command child elements.

Definition

Пространство имён: Tessa.Platform.CommandLine
Сборка: Tessa (в Tessa.dll) Версия: 3.6.0.22
C#
public sealed class CommandCollection : KeyedCollection<string, Command>
Inheritance
Object    CollectionCommand    KeyedCollectionString, Command    CommandCollection

Конструкторы

CommandCollection Initializes a new instance of the CommandCollection class.

Свойства

ComparerGets the generic equality comparer that is used to determine equality of keys in the collection.
(Унаследован от KeyedCollectionString, Command)
CountGets the number of elements actually contained in the CollectionT.
(Унаследован от CollectionCommand)
DictionaryGets the lookup dictionary of the KeyedCollectionTKey, TItem.
(Унаследован от KeyedCollectionString, Command)
ItemInt32Gets or sets the element at the specified index.
(Унаследован от CollectionCommand)
ItemTKeyGets the element with the specified key.
(Унаследован от KeyedCollectionString, Command)
ItemsGets a IListT wrapper around the CollectionT.
(Унаследован от CollectionCommand)

Методы

AddAdds an object to the end of the CollectionT.
(Унаследован от CollectionCommand)
ChangeItemKeyChanges the key associated with the specified element in the lookup dictionary.
(Унаследован от KeyedCollectionString, Command)
ClearRemoves all elements from the CollectionT.
(Унаследован от CollectionCommand)
ClearItemsRemoves all elements from the KeyedCollectionTKey, TItem.
(Унаследован от KeyedCollectionString, Command)
Contains(T)Determines whether an element is in the CollectionT.
(Унаследован от CollectionCommand)
Contains(TKey)Determines whether the collection contains an element with the specified key.
(Унаследован от KeyedCollectionString, Command)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Унаследован от CollectionCommand)
EqualsDetermines whether the specified object is equal to the current object.
(Унаследован от Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Унаследован от Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Унаследован от CollectionCommand)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetKeyForItemWhen implemented in a derived class, extracts the key from the specified element.
(Переопределяет KeyedCollectionTKey, TItemGetKeyForItem(TItem))
GetTypeGets the Type of the current instance.
(Унаследован от Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT.
(Унаследован от CollectionCommand)
InsertInserts an element into the CollectionT at the specified index.
(Унаследован от CollectionCommand)
InsertItemInserts an element into the KeyedCollectionTKey, TItem at the specified index.
(Унаследован от KeyedCollectionString, Command)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
Remove(T)Removes the first occurrence of a specific object from the CollectionT.
(Унаследован от CollectionCommand)
Remove(TKey)Removes the element with the specified key from the KeyedCollectionTKey, TItem.
(Унаследован от KeyedCollectionString, Command)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Унаследован от CollectionCommand)
RemoveItemRemoves the element at the specified index of the KeyedCollectionTKey, TItem.
(Унаследован от KeyedCollectionString, Command)
SetItemReplaces the item at the specified index with the specified item.
(Унаследован от KeyedCollectionString, Command)
ToStringReturns a string that represents the current object.
(Унаследован от Object)
TryGetCommand Gets the command with the specified name.
TryGetValue
(Унаследован от KeyedCollectionString, Command)

См. также