use #define in c for constant code example Example: constants in c# class Calendar1 { public const int Months = 12; }