I\'m programming using C#, after programming on C. So I\'m using a lot of constants such as \"DEFAULT_USER_ID\", \"REMOTE_ADDRESS\" and such...
It seems to me that it\'s
Also you may define constants like that
public static class Defaults
{
public const string MyName = "SuperName";
}
public class MyClass
{
string s = Defaults.MyName;
}
In such case you may use class Defaults anywhere in your app
Also you may want to know that there is two ways of defining constant variables in Static readonly vs const