AK.F1.Timing.Model.Driver.SectorTimesModel.Get C# (CSharp) Method

Get() public method

Gets the sector time collection for the specified one-based sector number.
/// Thrown when is not positive or is greater than three. ///
public Get ( int sectorNumber ) : PostedTimeCollectionModel
sectorNumber int The one-based sector number.
return AK.F1.Timing.Model.Collections.PostedTimeCollectionModel
        public PostedTimeCollectionModel Get(int sectorNumber)
        {
            if(sectorNumber == 1) {
                return this.S1;
            } else if(sectorNumber == 2) {
                return this.S2;
            } else if(sectorNumber == 3) {
                return this.S3;
            }

            throw Guard.ArgumentOutOfRange("sectorNumber");
        }
SectorTimesModel