Tuesday, 29 March 2016

Why to use keyword “const” in C#? Give an example.

“Const” keyword is used for making an entity constant. We can’t reassign the value to constant.
Eg: const string _name = "Test";

No comments:

Post a Comment