[]
The BaseCollection<T> is a base generic class for all collections in C1Schedule object model.
[TypeConverter(typeof(CollectionConverter))]
public class BaseCollection<T> : C1ObservableKeyedCollection<Guid, T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged where T : BasePersistableObject
| Name | Description |
|---|---|
| T | The type of the objects which will be stored in the collection. It should be derived from the BasePersistableObject class and have the default parameter-less constructor. |
| Name | Description |
|---|---|
| BaseCollection(object) | Initializes a new instance of the BaseCollection<T> class. |
| Name | Description |
|---|---|
| this[Guid] | Gets the element with the specified key if any. |
| OwnerInternal | |
| SuppressedDataChanging | Gets or set the bool value specifying whether change events should not be fired. |
| Name | Description |
|---|---|
| Add(T) | Adds a new custom object to the collection. If the item already exists in the collection, its index is returned. |
| AddRange(object[]) | Adds an array of objects to the collection. This methods clears the collection before adding new items. Don't use it if you want to keep preexisting items. |
| AddRange(T[]) | Adds an array of objects to the collection. This methods clears the collection before adding new items. Don't use it if you want to keep preexisting items. |
| BeginUpdate() | When overriden in derived class, starts batch operation. |
| Contains(int) | Check if collection contains an item with specified index. |
| EndUpdate() | When overriden in derived class, finishes batch operation. |
| GetKeyForItem(T) | Extracts the key from the specified element. |
| InsertItem(int, T) | Overrides default behavior of collection at inserting new items. |
| RemoveItem(int) | Overrides base class implementation. |