declare variable const c# code example Example: c# declare constant class Calendar1 { public const int Months = 12; }