diff --git a/src/Abbyy.CloudSdk.V2.Client/Utils/Serializer.cs b/src/Abbyy.CloudSdk.V2.Client/Utils/Serializer.cs index bd18d55..f86369e 100644 --- a/src/Abbyy.CloudSdk.V2.Client/Utils/Serializer.cs +++ b/src/Abbyy.CloudSdk.V2.Client/Utils/Serializer.cs @@ -72,34 +72,13 @@ private static string GetCollectionValues(IEnumerable collection) foreach (var element in collection) { - var elementType = element.GetType(); var value = element.ToString(); - - if (elementType.IsEnum) - { - value = GetEnumValue(elementType, value); - } - values.Add(value); } return string.Join(",", values); } - private static string GetEnumValue(Type enumType, string value) - { - var memberInfo = enumType.GetMember(value); - - var attribute = memberInfo[0] - .GetCustomAttribute(typeof(JsonPropertyAttribute)) as JsonPropertyAttribute; - - var actualValue = attribute is null ? - char.ToLowerInvariant(value[0]) + value.Substring(1) : - attribute.PropertyName; - - return actualValue; - } - private static string GetPropertyName(PropertyInfo prop) { var attribute = prop