AdrianStrugala / AvroConvert

Rapid Avro serializer for C# .NET
Other
97 stars 27 forks source link

Add support for [EnumMember] attributes #143

Closed robertcoltheart closed 6 months ago

robertcoltheart commented 6 months ago

This allows us to have a level of compatibility with Java enums, while still maintaining proper .NET coding standards.

It makes sense to support this, since we already support [DataMember].

eg.

public enum MyEnum
{
    [EnumMember(Value = "MY_VALUE")]
    MyValue
}
robertcoltheart commented 6 months ago

Hi @AdrianStrugala, this is ready for review

AdrianStrugala commented 6 months ago

Hey Robert, Thank you for your PR. I will try to review it in next week. Adrian

robertcoltheart commented 6 months ago

Hi @AdrianStrugala, any chance you can push this out to Nuget?

robertcoltheart commented 5 months ago

Bump @AdrianStrugala