AK.F1.Timing.Model.Session.SpeedCapturesModel.GetInnerCollection C# (CSharp) 메소드

GetInnerCollection() 개인적인 메소드

private GetInnerCollection ( SpeedCaptureLocation location ) : ObservableCollection
location SpeedCaptureLocation
리턴 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");
            }
        }