[]
        
(Showing Draft Content)

C1.DataCollection.C1DataCollectionBase-1

C1DataCollectionBase<T> Class

Base class for data collections.

Namespace: C1.DataCollection
Assembly: C1.DataCollection.dll
Syntax
public abstract class C1DataCollectionBase<T> : IDataCollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISupportIndexing<T>, INotifyPropertyChanged, IDisposable where T : class?
Type Parameters
Name Description
T

The type of the items in the collection.

Constructors

Name Description
C1DataCollectionBase()

Initializes a new instance of the C1DataCollectionBase<T> class.

Properties

Name Description
Count

Gets the number of elements in the collection.

InternalList

Gets or sets the list that hold the items to be returned in the public api.

IsDisposed

Gets whether the collection is disposed.

this[int]

Gets the element at the specified index in the read-only list.

Methods

Name Description
Dispose()
Dispose(bool)

Called to dispose resources.

GetEnumerator()

Returns an enumerator that iterates through the collection.

GetItemType()

Gets the type of the item.

IndexOf(T)

Gets the index of the specified item.

OnCollectionChanged(object?, NotifyCollectionChangedEventArgs)

Raises the CollectionChanged event.

OnPropertyChanged(string?)

Raises the PropertyChanged event.

Events

Name Description
CollectionChanged

Occurs after the collection changed.

PropertyChanged

Occurs when a property value changes.

Extension Methods