Инициализируйте ваши свойства в конструкторе вашего класса:
public class SL_CS{
// constructor gets called when you new this class
public SL_CS{
// set any properties as you would do normally
sl_cs.strDocKey = String.Empty;
}
public string strDocKey { get; set; }
public string strDocNo { get; set; }
public string strDOCDATE { get; set; }
public string strPOSTDATE { get; set; }
public string strTAXDATE { get; set;}
}
Когда вы сейчас новый класс:
var inst = new SL_CS();
, а затем проверьте inst.strDocKey
, это будет String.Empty,Ваши другие свойства будут нулевыми.