This feature is very helpful to write more readable code while initializing properties and variables for numerical values with new syntax for byte and long types.
Binary:
The new syntax for declaring binary property now, you can use 0b as a prefix.
public byte BinaryCode {get; } = 0b1010;
Long:
public long Number {get; } = 1_000_000_000;
No comments:
Post a Comment