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
comparerIEqualityComparer<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
initialValueTThe value this change detector is initialized to.
comparerIEqualityComparer<T>The comparer used tp compare values. If not provided, the Default will be used.
Remarks
TrackingEnabled is true initially.