Represents a data cell with an identifier and a value, supporting property change notification.
More...
|
|
override bool | Equals (object? obj) |
|
override int | GetHashCode () |
|
override string | ToString () |
|
| void | OnPropertyChanged ([CallerMemberName] string propertyName=null) |
| | When a property value changes, this method is called to raise the PropertyChanged event. The CallerMemberName attribute allows the caller to omit the property name when calling this method, as it will automatically use the name of the calling property. This simplifies the code and reduces the likelihood of errors when raising property change notifications. Observers can subscribe to the PropertyChanged event to be notified when a property value changes, enabling features like data binding in UI frameworks.
|
|
|
String | Id [get, set] |
|
int | Value [get, set] |
|
|
PropertyChangedEventHandler | PropertyChanged |
| | The PropertyChanged event is raised whenever a property value changes. Observers can subscribe to this event to be notified of changes to the properties of this class, allowing for responsive updates in scenarios such as data binding in user interfaces. The event handler receives the name of the property that changed, enabling observers to react specifically to changes in certain properties if needed.
|
Represents a data cell with an identifier and a value, supporting property change notification.
The Cell class implements INotifyPropertyChanged to support data binding scenarios, such as those found in UI frameworks. PropertyChanged is raised when the Value property changes, allowing observers to react to updates. Equality and hash code operations are based on both the Id and Value properties.
◆ OnPropertyChanged()
| void ReteCore.Cell.OnPropertyChanged |
( |
[CallerMemberName] string | propertyName = null | ) |
|
|
protected |
When a property value changes, this method is called to raise the PropertyChanged event. The CallerMemberName attribute allows the caller to omit the property name when calling this method, as it will automatically use the name of the calling property. This simplifies the code and reduces the likelihood of errors when raising property change notifications. Observers can subscribe to the PropertyChanged event to be notified when a property value changes, enabling features like data binding in UI frameworks.
- Parameters
-
The documentation for this class was generated from the following file: