I have a class with two properties one filled with the new auto-property initializer of c# 6.0 and one implementing only the getter shorthand:
public SampleEnum SampleProp1 { get; } = SampleEnum.Value1;
public SampleEnum SampleProp2 { get { return SampleEnum.Value1; } }
this class is a parameter of an wcf endpoint, when this endpoint is called the SampleProp1 contains only the default enum value.
Why is this happening?