What is the difference between the two following examples, both of which work fine?
private int opacity = 3; //Under Variables //and under Parameters public int Opacity { get { return opacity; } set { opacity = Math.Max(1, value); }
Opacity = 3; //Under State == State.SetDefaults //and under Parameters [Range(1, int.MaxValue)] public int Opacity { get; set; }
Many thanks.
Comment