Skip to content

Change struct

Attributes: [DebuggerDisplay("Change: {Reason}")]

Defined in

Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.Change<T> Modifiers: public sealed

Summary

View source (opens in a new tab)

Represents a single change in a reactive collection.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Class hierarchy
classDiagram
class Change~T~
class IEquatable~Change~T~~ {
    <>
}
IEquatable~Change~T~~ <|.. Change~T~

Implements: IEquatable> (opens in a new tab)

Remarks

        This is a struct-based change notification to minimize heap allocations.

Constructors

NameSummary
.ctorInitializes a new instance of the Change class.

Properties

NameSummary
ReasonGets the reason for the change.
CurrentGets the current/new item value.
PreviousGets the previous item value. Only populated for Update operations.
CurrentIndexGets the current index of the item in the collection, or -1 if not applicable.
PreviousIndexGets the previous index of the item. Only populated for Move operations.

Methods

NameSummary
static CreateAddCreates an Add change.
static CreateRemoveCreates a Remove change.
static CreateUpdateCreates an Update change.
static CreateMoveCreates a Move change.
static CreateRefreshCreates a Refresh change.
ToStringReturns the fully qualified type name of this instance.
GetHashCodeReturns the hash code for this instance.
EqualsIndicates whether this instance and a specified object are equal.

Operators

NameSummary
static op_Inequality
static op_Equality