Class ChangeSet
A ChangeSet describes the changes inside a IRealmCollection<T> since the last time the notification callback was invoked.
Namespace: Realms
Assembly: Realm.dll
Syntax
public class ChangeSet : object
Properties
| Improve this Doc View SourceDeletedIndices
Gets the indices of objects in the previous version of the IRealmCollection<T> which have been removed from this one.
Declaration
public int[] DeletedIndices { get; }
Property Value
Type | Description |
---|---|
Int32[] | An array, containing the indices of the deleted objects. |
InsertedIndices
Gets the indices in the new version of the IRealmCollection<T> which were newly inserted.
Declaration
public int[] InsertedIndices { get; }
Property Value
Type | Description |
---|---|
Int32[] | An array, containing the indices of the inserted objects. |
ModifiedIndices
Gets the indices in the new version of the IRealmCollection<T> which were modified. This means that either the property of an object at that index was modified or the property of of an object it's related to has changed.
Declaration
public int[] ModifiedIndices { get; }
Property Value
Type | Description |
---|---|
Int32[] | An array, containing the indices of the modified objects. |
Moves
Gets the rows in the collection which moved.
Declaration
public ChangeSet.Move[] Moves { get; }
Property Value
Type | Description |
---|---|
ChangeSet.Move[] | An array of ChangeSet.Move structs, indicating the source and the destination index of the moved row. |
Remarks
Every From index will be present in DeletedIndices and every To index will be present in InsertedIndices.