Typed |
public class TypedCollection<T> : IList, ICollection, IEnumerable, IList<T>, ICollection<T>, IEnumerable<T> where T : class
The TypedCollectionT type exposes the following members.
| Name | Description | |
|---|---|---|
| TypedCollectionT | Initialize a new instance of the TypedCollection class. |
| Name | Description | |
|---|---|---|
| Count | Gets the number of items in collection. | |
| IsFixedSize | Gets a value indicating whether the collection has a fixed size. | |
| IsReadOnly | Gets a value indicating whether the collection is read-only. | |
| IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). | |
| ItemInt32 | Gets or sets the item at the specified index. | |
| ItemString | Gets the item with the provided unique name. | |
| SyncRoot | Gets an object that can be used to synchronize access to the collection. |
| Name | Description | |
|---|---|---|
| Add(Object) | Append an item to the collection. | |
| Add(T) | Append an item to the collection. | |
| AddRange | Append an array of items. | |
| Clear | Remove all items from the collection. | |
| Contains(Object) | Determines whether the collection contains the item. | |
| Contains(T) | Determines whether the collection contains the item. | |
| CopyTo(Array, Int32) | Copies all the elements of the current collection to the specified Array. | |
| CopyTo(T, Int32) | Copies items to specified array starting at particular index. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetEnumerator | Shallow enumerate over items in the collection. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IndexOf(Object) | Determines the index of the specified item in the collection. | |
| IndexOf(T) | Determines the index of the specified item in the collection. | |
| Insert(Int32, T) | Inserts an item to the collection at the specified index. | |
| Insert(Int32, Object) | Inserts an item to the collection at the specified index. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| MoveAfter | Move the source item to be immediately after the target item. | |
| MoveBefore | Move the source item to be immediately before the target item. | |
| OnCleared | Raises the Cleared event. | |
| OnClearing | Raises the Clearing event. | |
| OnInserted | Raises the Inserted event. | |
| OnInserting | Raises the Inserting event. | |
| OnRemoved | Raises the Removed event. | |
| OnRemoving | Raises the Removing event. | |
| OnReordered | Raises the Reordered event. | |
| Remove(Object) | Removes first occurance of specified item. | |
| Remove(T) | Removes first occurance of specified item. | |
| RemoveAt | Removes the item at the specified index. | |
| ToString |
Obtains the String representation of this instance.
(Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| Cleared | Occurs when an items have been removed from the collection. | |
| Clearing | Occurs when an items are about to be removed from the collection. | |
| Inserted | Occurs when an item has been added/inserted to the collection. | |
| Inserting | Occurs when an item is about to be added/inserted to the collection. | |
| Removed | Occurs when an item is removed from the collection. | |
| Removing | Occurs when an item is about to be removed from the collection. | |
| Reordered | Occurs when items have been reordered inside the collection. |
| Name | Description | |
|---|---|---|
| ForEachT | (Defined by RcCollectionExtensions) | |
| GetReverseT |
Returns reversed list.
(Defined by CollectionUtility) | |
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) | |
| ShuffleT | (Defined by RcCollectionExtensions) |