Mukesh Kumar Tiwari

Mukesh Kumar Tiwari

  • NA
  • 980
  • 244.2k

How to initialize the deaf ult value to the class property.

Jan 19 2016 10:08 AM
hi frnds..
 
how to implement the default value of below property.
 
[DataMember]
public string status { get; set; }

[DataMember ]
public List<DALCompanyInfo> RetunrCompList { get; set; }
 
RetunrCompList  is a list type of class  DALCompanyInfo.
 
I dnt want to return the null value in JSON to the mobile app developer.   So i want to initilize the default value to the both property.
 
Thanks,...... 
 

Answers (1)