public static string CallTypeToString(CallType callType) { switch (callType) { case CallType.Any: return "A"; case CallType.Inbound: return "I"; case CallType.Outbound: return "O"; default: throw new ArgumentOutOfRangeException("callType"); } }