12
from this question, I know that a const string can be the concatenation of const things. Now, an enum is just a set of cont integers, isn't it ?
So why isn't it ok to do this :
const string blah = "blah " + MyEnum.Value1;
or this :
const string bloh = "bloh " + (int)MyEnum.Value1;
And how would you include an enum value in a const string ?
Real life example : when building an SQL query, I would like to have "where status <> " + StatusEnum.Discarded.