Error!
Success!

Set default values for properties

0
kicks

Set default values for properties  (Unpublished)

Many times I needed to set a default value for a property. For example at the property below public string Property1 {get; set;} I wanted a default value "Value1". The only way was to create a private field or to set it in code like Property1 = "Value1" somewhere.


Kicked By:
Drop Kicked By: