Where is the place to assign Read-only variables?

 Posted by vishalneeraj-24503 on 12/26/2013 | Category: C# Interview questions | Views: 2093 | Points: 40

We can assign values to Read-only variables either in Variable declaration or in Constructor.

For Example:-

public class Person

public readonly string status_deactive = "DD";
public readonly string status_active;

public Person()
status_active = "AA";

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response