Constructor ObservedValue
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
ObservedValue(IEqualityComparer<T>)
Initializes a new instance of the ObservedValue<T> class.
public ObservedValue(IEqualityComparer<T> comparer = null)
Parameters
comparer
IEqualityComparer<T>The comparer used tp compare values. If not provided, the Default will be used.
Remarks
OnValueChangewill not be raised the first time Value is being assigned.
TrackingEnabled is true initially.
ObservedValue(T, IEqualityComparer<T>)
Initializes a new instance of the ObservedValue<T> class.
public ObservedValue(T initialValue, IEqualityComparer<T> comparer = null)
Parameters
initialValue
TThe value this change detector is initialized to.
comparer
IEqualityComparer<T>The comparer used tp compare values. If not provided, the Default will be used.
Remarks
TrackingEnabled is true initially.