Assign value from DefaultValueAttribute
There exists DefaultValueAttirbute class that allows declare initial value for property. But, as it is stated in MSDN: A DefaultValueAttribute will not cause a member to be automatically initialized with the attribute’s value. You must set the initial value in your code. Briefly, there is code snippet that assign default value to property: Example of… Read More Assign value from DefaultValueAttribute