In C#, what\'s the difference between
static readonly string MyStr;
and
const string MyStr;
?
You can change the value of a static readonly string only in the static constructor of the class or a variable initializer, whereas you cannot change the value of a const string anywhere.
static readonly string
static
const