ReteEngine 1.0
A rules engine and builder
Loading...
Searching...
No Matches
ReteCore.Cell Class Reference

Represents a data cell with an identifier and a value, supporting property change notification. More...

Inheritance diagram for ReteCore.Cell:
ReteProgram.CriticalCell

Public Member Functions

override bool Equals (object? obj)
override int GetHashCode ()
override string ToString ()

Protected Member Functions

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.

Properties

String Id [get, set]
int Value [get, set]

Events

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.

Detailed Description

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.

Member Function Documentation

◆ 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
propertyName

The documentation for this class was generated from the following file:
  • ReteCore/Token.cs