I have a class with a large count of properties (about 30), for example
[DisplayName("Steps to stacker"), DefaultValue(20)]
[Description("Value in obturator steps")]
public int StepsToStacker { get; set; }
[DisplayName("Enter time"), DefaultValue(120)]
[Description("Value in milliseconds")]
public int EnterTime { get; set; }
Is there a simple way to implement LoadDefaultValues()
which load values from DefaultValue
atrribute?