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