How to set default value of a property in Class-C# 2.0
Posted by jalpesh vadgama | March 01, 2007 | C#.NET | 4 comments If you wanna set properties default value at the time of Class Instance creationg here is code that. Import following name space to your class with using directives. using System.Collections.Generic; using System.Text; using System.ComponentModel; Then create a private variable field for property private string