logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct RankedEntry

    A leaderboard entry paired with its 1-based rank position within its board. Immutable value object that supports equality comparison.

    Implements
    IEquatable<RankedEntry>
    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 RankedEntry : IEquatable<RankedEntry>

    Constructors

    RankedEntry(LeaderboardEntry, int)

    Creates a new RankedEntry with the specified entry and rank.

    Declaration
    public RankedEntry(LeaderboardEntry entry, int rank)
    Parameters
    Type Name Description
    LeaderboardEntry entry

    The underlying leaderboard entry.

    int rank

    The 1-based rank position of this entry.

    Fields

    Entry

    The underlying leaderboard entry.

    Declaration
    public readonly LeaderboardEntry Entry
    Field Value
    Type Description
    LeaderboardEntry

    Rank

    The 1-based rank position of this entry.

    Declaration
    public readonly int Rank
    Field Value
    Type Description
    int

    Methods

    Equals(RankedEntry)

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

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

    operator !=(RankedEntry, RankedEntry)

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

    Implements

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