logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct UiScreenId

    Stable identifier for a UI screen. Immutable value object that supports equality comparison and hashing.

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

    Constructors

    UiScreenId(string)

    Creates a new UiScreenId with the specified identifier.

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

    The unique string identifier. Cannot be null.

    Fields

    Value

    The unique string identifier for this screen.

    Declaration
    public readonly string Value
    Field Value
    Type Description
    string

    Properties

    IsValid

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

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

    Methods

    Equals(UiScreenId)

    Declaration
    public bool Equals(UiScreenId other)
    Parameters
    Type Name Description
    UiScreenId 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()

    ToString()

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

    Operators

    operator ==(UiScreenId, UiScreenId)

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

    explicit operator UiScreenId(string)

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

    implicit operator string(UiScreenId)

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

    operator !=(UiScreenId, UiScreenId)

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

    Implements

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