Class PropertyValue<TObject, TValue>
- Namespace
- DynamicData.Binding
- Assembly
- DynamicData.dll
Container holding sender and latest property value.
public sealed class PropertyValue<TObject, TValue> : IEquatable<PropertyValue<TObject, TValue>>
Type Parameters
TObject
The type of the object.
TValue
The type of the value.
- Inheritance
-
PropertyValue<TObject, TValue>
- Implements
-
IEquatable<PropertyValue<TObject, TValue>>
Constructors
PropertyValue(TObject, TValue)
Initializes a new instance of the PropertyValue<TObject, TValue> class.
public PropertyValue(TObject sender, TValue value)
Parameters
sender
TObjectThe sender.
value
TValueThe value.
Properties
Sender
Gets the Sender.
public TObject Sender { get; }
Property Value
- TObject
Value
Gets latest observed value.
public TValue? Value { get; }
Property Value
- TValue
Methods
Equals(PropertyValue<TObject, TValue>?)
public bool Equals(PropertyValue<TObject, TValue>? other)
Parameters
other
PropertyValue<TObject, TValue>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(PropertyValue<TObject, TValue>?, PropertyValue<TObject, TValue>?)
Implements the operator ==.
public static bool operator ==(PropertyValue<TObject, TValue>? left, PropertyValue<TObject, TValue>? right)
Parameters
left
PropertyValue<TObject, TValue>The left.
right
PropertyValue<TObject, TValue>The right.
Returns
- bool
The result of the operator.
operator !=(PropertyValue<TObject, TValue>?, PropertyValue<TObject, TValue>?)
Implements the operator !=.
public static bool operator !=(PropertyValue<TObject, TValue>? left, PropertyValue<TObject, TValue>? right)
Parameters
left
PropertyValue<TObject, TValue>The left.
right
PropertyValue<TObject, TValue>The right.
Returns
- bool
The result of the operator.