Possible Duplicate:
Why isn’t String.Empty a constant?
To make my code more readable I tried to assign String.Empty
to a constant value:
const string PLATYPUS_ADDED_AND_ACCEPTED = string.Empty;
if (false) { }
else
{
toolTip = PLATYPUS_ADDED_AND_ACCEPTED;
}
but I get "the expression being added must be constant"
Isn't String.Empty
always the same thing? That seems pretty constant to me.