logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct StateKeyId

    Stable identifier for state values in the procedural animation system. Immutable value object that supports equality comparison and hashing.

    Implements
    IEquatable<StateKeyId>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.ProceduralExpression.Domain.ValueObjects
    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
    Type Description
    string

    Properties

    IsValid

    Checks if this StateKeyId has a valid, non-empty value.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    Equals(StateKeyId)

    Declaration
    public bool Equals(StateKeyId other)
    Parameters
    Type Name Description
    StateKeyId other
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    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
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(StateKeyId, StateKeyId)

    Declaration
    public static bool operator ==(StateKeyId left, StateKeyId right)
    Parameters
    Type Name Description
    StateKeyId left
    StateKeyId right
    Returns
    Type Description
    bool

    explicit operator StateKeyId(string)

    Declaration
    public static explicit operator StateKeyId(string value)
    Parameters
    Type Name Description
    string value
    Returns
    Type Description
    StateKeyId

    implicit operator string(StateKeyId)

    Declaration
    public static implicit operator string(StateKeyId id)
    Parameters
    Type Name Description
    StateKeyId id
    Returns
    Type Description
    string

    operator !=(StateKeyId, StateKeyId)

    Declaration
    public static bool operator !=(StateKeyId left, StateKeyId right)
    Parameters
    Type Name Description
    StateKeyId left
    StateKeyId right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In this article
    © 2026 Serenity. All Rights Reserved