C# constant variables code example
Example 1: const float c#
const int X = 0;
public const double GravitationalConstant = 6.673e-11;
private const string ProductName = "Visual C#";
Example 2: c# declare constant
class Calendar1
{
public const int Months = 12;
}