logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct BoardId

    Identifies a leaderboard board within the leaderboard system. Immutable value object that supports equality comparison and hashing.

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

    Constructors

    BoardId(string)

    Creates a new BoardId with the specified identifier.

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

    The unique string identifier. Cannot be null.

    Fields

    Value

    The unique string identifier for this board.

    Declaration
    public readonly string Value
    Field Value
    Type Description
    string

    Properties

    IsValid

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

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

    Methods

    Equals(BoardId)

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

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

    explicit operator BoardId(string)

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

    implicit operator string(BoardId)

    Declaration
    public static implicit operator string(BoardId key)
    Parameters
    Type Name Description
    BoardId key
    Returns
    Type Description
    string

    operator !=(BoardId, BoardId)

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

    Implements

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