AK.F1.Timing.Model.Session.SpeedCapturesModel.GetInnerCollection C# (CSharp) Method

GetInnerCollection() private method

private GetInnerCollection ( SpeedCaptureLocation location ) : ObservableCollection
location SpeedCaptureLocation
return ObservableCollection
        private ObservableCollection<SpeedCaptureModel> GetInnerCollection(SpeedCaptureLocation location)
        {
            switch(location)
            {
                case SpeedCaptureLocation.S1:
                    return InnerS1;
                case SpeedCaptureLocation.S2:
                    return InnerS2;
                case SpeedCaptureLocation.S3:
                    return InnerS3;
                case SpeedCaptureLocation.Straight:
                    return InnerStraight;
                default:
                    throw Guard.ArgumentOutOfRange("location");
            }
        }