C# Constants:-
Constants are similar to read-only fields. You can’t change a constant value once it’s assigned.

The const keyword precedes the field to define it as a constant. Assigning value to a constant would give a compilation error.

For example: const int number1 = 3030;
number1 = 321; // Compilation error: the left-hand side of an assignment must
// be a variable, property or indexer

Although constant are similar to read-only fields, some differences exist. You can also declare local variables to be constants.

Constants are always static, even though you don’t use the static keyword explicitly, so they’re shared by all instances of the class.