Class ImmutableObject
Extends DisposableObject with immutable feature. Allows to implement immutable objects with properties that can not be changed.
public class ImmutableObject : DisposableObject, IBaseObject, IDisposableObject, IDisposable, INotifyPropertyChanged
- Inheritance
-
ImmutableObject
- Implements
- Derived
Properties
- Immutable
Gets or sets whether object is immutable (properties can not be changed).
Methods
- OnPropertyChanged(string?)
Called when object property is changed.
- RaisePropertyChanged(string?)
Calls PropertyChanged event.
- SetImmutable()
Marks the object as immutable.
- SetProperty<T>(ref T?, T?, string?, Action?)
Sets field value and calls OnPropertyChanged(string?) method.
Events
- PropertyChanged
Occurs when a property value changes.