0 votes
in C Sharp by
Why to use keyword “const” in C#? Give an example.

1 Answer

0 votes
by
“Const” keyword is used for making an entity constant. We can’t reassign the value to constant.

Eg: const string _name = "Test";

Related questions

0 votes
asked Oct 18, 2019 in C Sharp by Robin
0 votes
asked Oct 18, 2019 in C Sharp by Robin
...