Struct StateKeyId
Stable identifier for state values in the procedural animation system.
Immutable value object that supports equality comparison and hashing.
Assembly: Serenity.ProceduralExpression.Domain.dll
Syntax
public readonly struct StateKeyId : IEquatable<StateKeyId>
Constructors
StateKeyId(string)
Creates a new StateKeyId with the specified identifier.
Declaration
public StateKeyId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
The unique string identifier. Cannot be null or empty.
|
Fields
Value
The unique string identifier for this state key.
Declaration
public readonly string Value
Field Value
Properties
IsValid
Checks if this StateKeyId has a valid, non-empty value.
Declaration
public bool IsValid { get; }
Property Value
Methods
Equals(StateKeyId)
Declaration
public bool Equals(StateKeyId other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
NewGuid()
Creates a new StateKeyId with an auto-generated GUID.
Declaration
public static StateKeyId NewGuid()
Returns
| Type |
Description |
| StateKeyId |
A new StateKeyId with a unique GUID-based identifier.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(StateKeyId, StateKeyId)
Declaration
public static bool operator ==(StateKeyId left, StateKeyId right)
Parameters
Returns
explicit operator StateKeyId(string)
Declaration
public static explicit operator StateKeyId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
implicit operator string(StateKeyId)
Declaration
public static implicit operator string(StateKeyId id)
Parameters
Returns
operator !=(StateKeyId, StateKeyId)
Declaration
public static bool operator !=(StateKeyId left, StateKeyId right)
Parameters
Returns
Implements