TechTips
.NET/ CSLA.NET / ASP.NET / VB.NET / C# / SQL Server / MySql / Android
-
Jan177 Comments
So what is the difference between CONST and READONLY? Let’s examine the difference between these two with an example.
So we can clearly see that we can initialize readonly variables during the declaration and in the constructor of the class. So its possible to initialize readonly variables once at run time but we can’t change value of const variables.Happy coding!

Leave a reply


Neetu March 2nd, 2011 at 23:56