Enhanced C#
Language of your choice: library documentation
Public fields | Public Member Functions | List of all members
Loyc.Collections.ListChangeInfo< T > Struct Template Reference

Contains information about how a collection is about to change. More...


Source file:

Remarks

Contains information about how a collection is about to change.

Template Parameters
TType of element in the collection

In contrast to NotifyCollectionChangedEventArgs, this object represents changes that are about to happen, not changes that have happened already.

See also
INotifyListChanging<T>

Public fields

readonly NotifyCollectionChangedAction Action
 Gets a value that indicates the type of change being made to the collection. More...
 
readonly int Index
 Gets the index at which the add, remove, or change operation starts. More...
 
readonly int SizeChange
 Gets the amount by which the collection size changes. When items are being added, this is positive, and when items are being removed, this is negative. This is 0 when existing items are only being replaced. More...
 
readonly IListSource< T > NewItems
 Represents either new items that are being added to the collection, or items that are about to replace existing items in the collection. This member is null or empty when items are being removed. More...
 

Public Member Functions

 ListChangeInfo (NotifyCollectionChangedAction action, int index, int sizeChange, IListSource< T > newItems)
 Initializes the members of ListChangeInfo<T>. More...
 

Constructor & Destructor Documentation

Loyc.Collections.ListChangeInfo< T >.ListChangeInfo ( NotifyCollectionChangedAction  action,
int  index,
int  sizeChange,
IListSource< T >  newItems 
)
inline

Initializes the members of ListChangeInfo<T>.

Member Data Documentation

readonly NotifyCollectionChangedAction Loyc.Collections.ListChangeInfo< T >.Action

Gets a value that indicates the type of change being made to the collection.

readonly int Loyc.Collections.ListChangeInfo< T >.Index

Gets the index at which the add, remove, or change operation starts.

readonly IListSource<T> Loyc.Collections.ListChangeInfo< T >.NewItems

Represents either new items that are being added to the collection, or items that are about to replace existing items in the collection. This member is null or empty when items are being removed.

readonly int Loyc.Collections.ListChangeInfo< T >.SizeChange

Gets the amount by which the collection size changes. When items are being added, this is positive, and when items are being removed, this is negative. This is 0 when existing items are only being replaced.