C
cody
Iam wondering what the benefit of using const over static readonly is.
static readonly is a runtime constant and can be set once in the initializer
or the static ctor, whereas const is suffering from binary incompatibility
since it is hardbaked into the binary.
I do not believe there is a performance advantage with using const over
static readonly since the JIT will take account of that or am I wrong here?
static readonly is a runtime constant and can be set once in the initializer
or the static ctor, whereas const is suffering from binary incompatibility
since it is hardbaked into the binary.
I do not believe there is a performance advantage with using const over
static readonly since the JIT will take account of that or am I wrong here?