As soon as I started programming C# (ASP.NET) I was surprised at how restrictive constants were. So far, I haven't used them much and I feel I missed the concept. How would you guys make use of constants in a typical ASP.NET application?
How would declare a constant struct
such as System.Drawing.Color
?
Would you guys use readonly
when const
cannot be used?
I would like to find out how people are using const
and readonly
and to discuss alternatives if any.