Skip to content

StaticPrimitiveTypeFields

Mehdi Mohammadi edited this page Dec 30, 2013 · 1 revision

C# compiler does not allow not-constant fields to be used in some places like switch cases. Static fields with primitive types that initialized to literal values may be used in such places in Java.

We make these fields constant.

Clone this wiki locally