Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public enum WorkStatus
- {
- [EnumMember(Value = "In Progress")]
- InProgress = 0,
- [EnumMember(Value = "Nicely done")]
- Completed = 1,
- }
- public class Foo
- {
- [JsonConverter(typeof(StringEnumConverter))] //Newtonsoft.Json
- public WorkStatus Status { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement