Show / Hide Table of Contents

Class LapExtensions

Extensions that work on laps

Inheritance
System.Object
LapExtensions
Namespace: MESL.SqlRace.Domain.Extensions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class LapExtensions : Object

Methods

FindLap(ILapCollection, Int64)

Find lap at timestamp

Declaration
public static Lap FindLap(this ILapCollection laps, long timestamp)
Parameters
Type Name Description
ILapCollection laps

Laps to search

System.Int64 timestamp

Timestamp of lap to find

Returns
Type Description
Lap

Lap if found else null

IsInLastLap(ILapCollection, Int64)

Is timestamp in last lap?

Declaration
public static bool IsInLastLap(this ILapCollection laps, long timestamp)
Parameters
Type Name Description
ILapCollection laps

Laps to search

System.Int64 timestamp

Timestamp to see if in last lap

Returns
Type Description
System.Boolean

True if timestamp in last lap

Back to top Generated by DocFX