Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Honor DataMember attribute for enum fields. #81

Open
AgentFire opened this issue Jun 16, 2018 · 0 comments
Open

Honor DataMember attribute for enum fields. #81

AgentFire opened this issue Jun 16, 2018 · 0 comments

Comments

@AgentFire
Copy link

AgentFire commented Jun 16, 2018

public enum AccessibilityType
{
    Open = 0,
    Closed = 1,
    [DataMember(Name = "closed_for_outsiders")]
    Private = 2
}

That way DataMember will become more useful than it is now (only for class properties).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant