declare constant c# code example
Example 1: constants in c#
class Calendar1
{
public const int Months = 12;
}
Example 2: c# initialize constant
const string one= "Amit";
class Calendar1
{
public const int Months = 12;
}
const string one= "Amit";