readonly struct Read{
readonly int j; //not ok without readonly
static int Sj; //ok
}
Why aren't static fields enforced to be readonly in readonly structs, while instance fields are obliged to be readonly in readonly structs?
readonly struct Read{
readonly int j; //not ok without readonly
static int Sj; //ok
}
Why aren't static fields enforced to be readonly in readonly structs, while instance fields are obliged to be readonly in readonly structs?