What is the difference between a constant and a static readonly field?

 Posted by Tripati_tutu on 11/16/2010 | Category: C# Interview questions | Views: 3258 | Points: 40

A static readonly field is very much similar as constant, but the difference is the C# compiler does not have access to the value of a static readonly field at compile time. It will access only at run time.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response