ViewUniqueNameCollectionT - класс

Коллекция именованных объектов с уникальными именами.

Definition

Пространство имён: Tessa.Views.Metadata
Сборка: Tessa (в Tessa.dll) Версия: 4.1.3+7e2b1422f9b8c7c41fbbc4b151a843bed05319ab
C#
public class ViewUniqueNameCollection<T> : UniqueNameCollection<T>
where T : class, INamedObject
Inheritance
Object    UniqueNameCollectionT    ViewUniqueNameCollectionT
Derived
Подробнее

Параметры типа

T
Ссылочный элемент коллекции, реализующий интерфейс INamedObject.

Заметки

Имена объектов проверяются без учёта регистра в соответствии с методом IsEquals(String, String).

В случае совпадения имён выбрасывается исключение UniqueAliasException.

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

ViewUniqueNameCollectionTInitializes a new instance of the ListT class that is empty and has the default initial capacity.
ViewUniqueNameCollectionT(IEnumerableT)Initializes a new instance of the ListT class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
ViewUniqueNameCollectionT(Int32)Initializes a new instance of the ListT class that is empty and has the specified initial capacity.

Свойства

CountGets the number of elements contained in the ICollectionT.
(Унаследован от UniqueNameCollectionT)
IsSealedПризнак того, что объект был защищён от изменений.
(Унаследован от UniqueNameCollectionT)
ItemGets or sets the element at the specified index.
(Унаследован от UniqueNameCollectionT)

Методы

AddAdds an item to the ICollectionT.
(Унаследован от UniqueNameCollectionT)
AsReadOnly Возвращает текущую коллекцию, доступную только для чтения.
(Унаследован от UniqueNameCollectionT)
ClearRemoves all items from the ICollectionT.
(Унаследован от UniqueNameCollectionT)
Contains(String) Возвращает признак того, что элемент с указанным именем входит в коллекцию.
(Унаследован от UniqueNameCollectionT)
Contains(T)Determines whether the ICollectionT contains a specific value.
(Унаследован от UniqueNameCollectionT)
CopyToCopies the elements of the ICollectionT to an Array, starting at a particular Array index.
(Унаследован от UniqueNameCollectionT)
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)
FindByName Возвращает элемент по его имени или null, если элемент не найден.
(Унаследован от UniqueNameCollectionT)
GetEnumeratorReturns an enumerator that iterates through the collection.
(Унаследован от UniqueNameCollectionT)
GetHashCodeServes as the default hash function.
(Унаследован от Object)
GetTypeGets the Type of the current instance.
(Унаследован от Object)
IndexOf(String) Возвращает индекс элемента по его имени или -1, если элемент не найден.
(Унаследован от UniqueNameCollectionT)
IndexOf(T)Determines the index of a specific item in the IListT.
(Унаследован от UniqueNameCollectionT)
InsertInserts an item to the IListT at the specified index.
(Унаследован от UniqueNameCollectionT)
MemberwiseCloneCreates a shallow copy of the current Object.
(Унаследован от Object)
NamesAreEqual Возвращает признак того, что имена совпадают.
(Переопределяет UniqueNameCollectionTNamesAreEqual(String, String))
RemoveRemoves the first occurrence of a specific object from the ICollectionT.
(Унаследован от UniqueNameCollectionT)
RemoveAtRemoves the IListT item at the specified index.
(Унаследован от UniqueNameCollectionT)
SealЗащищает объект от изменений.
(Унаследован от UniqueNameCollectionT)
SealInternal

Защищает объект от изменений.

Метод может быть переопределён в классах-наследниках.


(Унаследован от UniqueNameCollectionT)
ThrowExists Выбрасывает исключение о том, что указанный элемент уже содержится в коллекции.
(Переопределяет UniqueNameCollectionTThrowExists(T))
ThrowIfExists Выбрасывает исключение, если имя элемента item уже содержится в коллекции.
(Унаследован от UniqueNameCollectionT)
ToStringReturns a string that represents the current object.
(Унаследован от Object)

См. также