AK.F1.Timing.Service.Utility.IcsConverter.GetSessionName C# (CSharp) Метод

GetSessionName() приватный статический Метод

private static GetSessionName ( IEvent e ) : string
e IEvent
Результат string
        private static string GetSessionName(IEvent e)
        {
            switch (GetSessionType(e))
            {
                case SessionType.P1:
                    return "Practice 1";
                case SessionType.P2:
                    return "Practice 2";
                case SessionType.P3:
                    return "Practice 3";
                case SessionType.Qually:
                    return "Qualification";
                case SessionType.Race:
                    return "Race";
                default:
                    throw new ArgumentOutOfRangeException();
            }
        }