logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct StageId

    Stable identifier for a rail shooter stage. Immutable value object that supports equality comparison and hashing.

    Implements
    IEquatable<StageId>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Stage.Domain.ValueObjects
    Assembly: Serenity.Stage.Domain.dll
    Syntax
    public readonly struct StageId : IEquatable<StageId>

    Constructors

    StageId(string)

    Creates a new StageId with the specified identifier.

    Declaration
    public StageId(string value)
    Parameters
    Type Name Description
    string value

    The unique string identifier. Cannot be null.

    Fields

    Value

    The unique string identifier for this stage.

    Declaration
    public readonly string Value
    Field Value
    Type Description
    string

    Properties

    IsValid

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

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

    Methods

    Equals(StageId)

    Declaration
    public bool Equals(StageId other)
    Parameters
    Type Name Description
    StageId 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 StageId with an auto-generated GUID.

    Declaration
    public static StageId NewGuid()
    Returns
    Type Description
    StageId

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(StageId, StageId)

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

    explicit operator StageId(string)

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

    implicit operator string(StageId)

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

    operator !=(StageId, StageId)

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

    Implements

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