RedMist
Search Results for

    Show / Hide Table of Contents

    Class SessionExtensions

    Inheritance
    object
    SessionExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: RedMist.TimingCommon.Extensions
    Assembly: RedMist.TimingCommon.dll
    Syntax
    public static class SessionExtensions

    Methods

    View Source

    DeepCopy(SessionState)

    Creates a deep copy of the specified SessionState instance.

    Declaration
    public static SessionState DeepCopy(this SessionState original)
    Parameters
    Type Name Description
    SessionState original

    The SessionState object to copy. Cannot be null.

    Returns
    Type Description
    SessionState

    A new SessionState instance that is a deep copy of original.

    View Source

    ToPayload(SessionState)

    Converts a SessionState to a Payload with deep copying of CarPositions. Non-matching fields are ignored, and EventEntryUpdates and CarPositionUpdates are left empty.

    Declaration
    public static Payload ToPayload(this SessionState sessionState)
    Parameters
    Type Name Description
    SessionState sessionState

    The SessionState to convert

    Returns
    Type Description
    Payload

    A new Payload instance with matching fields copied

    • View Source
    In this article
    Back to top © 2025 Big Mission Motorsports, LLC. Red Mist Timing & Scoring