public class CastedList<TFrom, TTo> : IList<TTo>,
ICollection<TTo>, IEnumerable<TTo>, IEnumerable
CastedListTFrom, TTo | 初始化转换后的强类型列表。 |
Public Properties | |
Count | Gets the number of elements contained in the ICollection. |
FromList | 源列表。 |
IsReadOnly | Gets a value indicating whether the ICollectionT is read-only. |
Item | Gets or sets the element at the specified index. |
Public Methods | |
Add | Adds an item to the ICollectionT. |
Clear | Removes all items from the ICollectionT. |
Contains | Determines whether the ICollectionT contains a specific value. |
CopyTo | Copies the elements of the ICollectionT to an Array, starting at a particular Array index. |
GetEnumerator | Returns an enumerator that iterates through a collection. |
IndexOf | Determines the index of a specific item in the IListT. |
Insert | Inserts an item to the IListT at the specified index. |
Remove | Removes the first occurrence of a specific object from the ICollectionT. |
RemoveAt | Removes the IListT item at the specified index. |
IEnumerableGetEnumerator | Returns an enumerator that iterates through a collection. |