How to write only Readonly property in C#?

 Posted by Rajesh_Kumar on 2/14/2014 | Category: C# Interview questions | Views: 3463 | Points: 40
Answer:

Simply write get property as
private string _last_name = "Kumar";  

public string Last_Name
{
get
{
return _last_name;
}
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response