internal static ServiceError GetServiceError(String value) { foreach (var it in GetServiceErrors()) { if (string.Compare(value, it.Value, true) == 0) { return it.Key; } } throw new ArgumentException(); }