M
Mike P
I don't understand why when using
class Consts
{
public const string Var = "Hello"
}
The value of Consts.Var within the debugger is null, but at runtime it is
correct (holds the value "Hello")
I was able to get around the problem by using
public static readonly string Var = "Hello", but you can't use
Consts.Var in a switch because it is not a constant.
Any ideas?
class Consts
{
public const string Var = "Hello"
}
The value of Consts.Var within the debugger is null, but at runtime it is
correct (holds the value "Hello")
I was able to get around the problem by using
public static readonly string Var = "Hello", but you can't use
Consts.Var in a switch because it is not a constant.
Any ideas?