public sealed class CollectionCovarianceAdapter<TDerived, TBase> : Collection<TBase>
where TDerived : TBase
Public NotInheritable Class CollectionCovarianceAdapter(Of TDerived As TBase, TBase)
Inherits Collection(Of TBase)
generic<typename TDerived, typename TBase>
where TDerived : TBase
public ref class CollectionCovarianceAdapter sealed : public Collection<TBase>
[<SealedAttribute>]
type CollectionCovarianceAdapter<'TDerived, 'TBase when 'TDerived : 'TBase> =
class
inherit Collection<'TBase>
end
CollectionCovarianceAdapterTDerived, TBase | Инициализирует новый экземпляр класса CollectionCovarianceAdapterTDerived, TBase |
Count | Gets the number of elements actually contained in the CollectionT. (Унаследован от CollectionTBase) |
Item | Gets or sets the element at the specified index. (Унаследован от CollectionTBase) |
Items | Gets a IListT wrapper around the CollectionT. (Унаследован от CollectionTBase) |
Add | Adds an object to the end of the CollectionT. (Унаследован от CollectionTBase) |
Clear | Removes all elements from the CollectionT. (Унаследован от CollectionTBase) |
ClearItems | (Переопределяет CollectionTClearItems) |
Contains | Determines whether an element is in the CollectionT. (Унаследован от CollectionTBase) |
CopyTo | Copies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array. (Унаследован от CollectionTBase) |
Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
GetEnumerator | Returns an enumerator that iterates through the CollectionT. (Унаследован от CollectionTBase) |
GetHashCode | Serves as the default hash function. (Унаследован от Object) |
GetType | Gets the Type of the current instance. (Унаследован от Object) |
IndexOf | Searches for the specified object and returns the zero-based index of the first occurrence within the entire CollectionT. (Унаследован от CollectionTBase) |
Insert | Inserts an element into the CollectionT at the specified index. (Унаследован от CollectionTBase) |
InsertItem | (Переопределяет CollectionTInsertItem(Int32, T)) |
MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
Remove | Removes the first occurrence of a specific object from the CollectionT. (Унаследован от CollectionTBase) |
RemoveAt | Removes the element at the specified index of the CollectionT. (Унаследован от CollectionTBase) |
RemoveItem | (Переопределяет CollectionTRemoveItem(Int32)) |
SetItem | (Переопределяет CollectionTSetItem(Int32, T)) |
ToString | Returns a string that represents the current object. (Унаследован от Object) |