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
Properties
| Edit this page 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 |
---|---|
int[] | 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 |
---|---|
int[] | An array, containing the indices of the inserted objects. |
IsCleared
Gets a value indicating whether the collection has been cleared. The collection is cleared after calling methods such as Clear().
Declaration
public bool IsCleared { get; }
Property Value
Type | Description |
---|---|
bool |
|
Remarks
| Edit this page View SourceModifiedIndices
Gets the indices in the old 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 |
---|---|
int[] | 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 |
---|---|
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.
NewModifiedIndices
Gets the indices in the new version of the IRealmCollection<T> which were modified. Conceptually, it contains the same entries as ModifiedIndices but after the insertions and deletions have been accounted for.
Declaration
public int[] NewModifiedIndices { get; }
Property Value
Type | Description |
---|---|
int[] | An array, containing the indices of the modified objects. |