I have a class with a property which is an enum
The enum is
/// /// All available delivery actions /// public enum E
Enums are a value type, like ints. You need to make it nullable so as not to default to the first (or 0-defined) enum member.
public class MyClass { public EnumDeliveryAction? DeliveryAction { get; set;} }