RedMist
Search Results for

    Show / Hide Table of Contents

    Class CarPositionExtensions

    Provides extension methods for creating deep copies of CarPosition instances and collections.

    Inheritance
    object
    CarPositionExtensions
    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 CarPositionExtensions
    Remarks

    These extension methods use an auto-generated CarPositionMapper to perform deep cloning. If the mapper is unavailable, the methods fall back to manual copying. The class is static and intended for use with CarPosition objects to facilitate safe duplication without shared references.

    Methods

    View Source

    DeepCopy(CarPosition)

    Creates a deep copy of a CarPosition using the auto-generated CarPositionMapper. If the mapper is not available, falls back to manual copying.

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

    The CarPosition to copy

    Returns
    Type Description
    CarPosition

    A deep copy of the CarPosition

    View Source

    DeepCopy(IEnumerable<CarPosition>)

    Creates deep copies of a collection of CarPositions.

    Declaration
    public static IEnumerable<CarPosition> DeepCopy(this IEnumerable<CarPosition> carPositions)
    Parameters
    Type Name Description
    IEnumerable<CarPosition> carPositions
    Returns
    Type Description
    IEnumerable<CarPosition>
    • View Source
    In this article
    Back to top © 2025 Big Mission Motorsports, LLC. Red Mist Timing & Scoring