• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in C Sharp by
Q:
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
...