Xpode.com        Click here to Print this article.

Difference b/w readonly & constant variable

Constant:

Can not be static. Value is evaluated at compile time. Initiailized at declaration only.

Readonly:

Can be either instance-level or static. Value is evaluated at run time. Can be initialized in declaration or by code in the constructor.






Contributed by:
Guest
Guest user is that user who have done some activity on website without login. Activity contains commenting on any article, uploading an image on website etc.

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=169

Click here to go on website