Class ObservedChange<TSender, TValue>
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
A data-only version of IObservedChange.
public class ObservedChange<TSender, TValue> : IObservedChange<TSender, TValue>
Type Parameters
TSender
The sender type.
TValue
The value type.
- Inheritance
-
ObservedChange<TSender, TValue>
- Implements
-
IObservedChange<TSender, TValue>
- Extension Methods
Remarks
Initializes a new instance of the ObservedChange<TSender, TValue> class.
Constructors
ObservedChange(TSender, Expression?, TValue)
A data-only version of IObservedChange.
public ObservedChange(TSender sender, Expression? expression, TValue value)
Parameters
sender
TSenderThe sender.
expression
ExpressionExpression describing the member.
value
TValueThe value.
Remarks
Initializes a new instance of the ObservedChange<TSender, TValue> class.
Properties
Expression
Gets the expression of the member that has changed on Sender.
public Expression? Expression { get; }
Property Value
Sender
Gets the object that has raised the change.
public TSender Sender { get; }
Property Value
- TSender
Value
Gets the value of the property that has changed. IMPORTANT NOTE: This property is often not set for performance reasons, unless you have explicitly requested an Observable for a property via a method such as ObservableForProperty. To retrieve the value for the property, use the GetValue() extension method.
public TValue Value { get; }
Property Value
- TValue