C# language feature:

  • Digit separators

applies to

  • numeric literals

benefit

  • Allows separating digits in code.

how to use

  • _ maybe used to seperate digits as desired. _ is ignored by compiler.

example:

        int digitseperation_example = 123_456; // can be binary, hex, etc