Application.Common.Helper.PersonTypeToString C# (CSharp) Method

PersonTypeToString() public static method

public static PersonTypeToString ( PersonType personType ) : string
personType PersonType
return string
        public static string PersonTypeToString(PersonType personType)
        {
            switch (personType)
            {
                case PersonType.Employee: return "E";
                case PersonType.Client: return "C";
                default:
                    throw new ArgumentOutOfRangeException("personType");
            }
        }