chore: bumped dotnet version to 10
This commit is contained in:
@@ -14,23 +14,22 @@ public class State : BaseEntity, IState
|
||||
|
||||
private readonly List<StateTransition> transitions = [];
|
||||
private readonly Dictionary<string, StateTransition> possibleTransitions = [];
|
||||
private string _name = "Default State Name";
|
||||
|
||||
public IReadOnlyList<StateTransition> Transitions => transitions;
|
||||
public IReadOnlyDictionary<string, StateTransition> PossibleTransitions => possibleTransitions;
|
||||
public string Name
|
||||
{
|
||||
get => _name;
|
||||
get;
|
||||
set
|
||||
{
|
||||
if (_name.CompareTo(value) == 0)
|
||||
if (field.CompareTo(value) == 0)
|
||||
return;
|
||||
|
||||
string previousName = _name;
|
||||
_name = value;
|
||||
string previousName = field;
|
||||
field = value;
|
||||
OnNameChanged?.Invoke(this, new(previousName));
|
||||
}
|
||||
}
|
||||
} = "Default State Name";
|
||||
|
||||
public void RemoveTransition(string name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user