c# declare constant code example
Example 1: c# declare constant
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";