C# language feature:

  • Binary literals

applies to

  • numeric literals

benefit

  • Allows specifying (readabe) bit patterns.

how to use

  • Insert 0b followed by binary representation of integer.

example:

        double somenumeric = 0b1001; //