Escali License control 1
StateProperty.cs
Gå til dokumentasjonen til denne filen.
1namespace Escali.LicenseControl.Client.State;
2
3public class StateProperty<T>
4{
5 public T? Value
6 {
7 get => _value;
8 set
9 {
10 _value = value;
12 }
13 }
14 private T? _value;
15 public event Action? ValueChanged;
16 private void OnValueChanged() => ValueChanged?.Invoke();
17
18 public StateProperty() {}
19 public StateProperty(T value)
20 {
21 Value = value;
22 }
23}
void OnValueChanged()
Action? ValueChanged
StateProperty(T value)