AcManager.Tools.Profile.LapTimesStorage.GetLapTimes C# (CSharp) Method

GetLapTimes() public method

public GetLapTimes ( ) : IEnumerable
return IEnumerable
        public IEnumerable<LapTimeEntry> GetLapTimes() {
            return from p in this
                   where p.Key.StartsWith(KeyPrefix)
                   let s = p.Key.Split(':')
                   let e = s.Length == 3 ? GetLapTime(s[1], s[2], p.Value) : null
                   where e != null
                   select e;
        }

Usage Example

Esempio n. 1
0
 private IEnumerable <LapTimeEntry> ReadCmEntries()
 {
     InitializeCm();
     return(_cmStorage.GetLapTimes());
 }