Skip to content

Commit 0ea9355

Browse files
bkoelmandennisdoomen
authored andcommitted
Added example: binary literal with digit separator (#125)
1 parent 66c7951 commit 0ea9355

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Src/Guidelines/1500_MaintainabilityGuidelines.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ Don't use literal values, either numeric or strings, in your code, other than to
6464
public class Whatever
6565
{
6666
public static readonly Color PapayaWhip = new Color(0xFFEFD5);
67-
public const int MaxNumberOfWheels = 18;
67+
public const int MaxNumberOfWheels = 18;
68+
public const byte ReadCreateOverwriteMask = 0b0010_1100;
6869
}
6970

7071
Strings intended for logging or tracing are exempt from this rule. Literals are allowed when their meaning is clear from the context, and not subject to future changes, For example:

0 commit comments

Comments
 (0)