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