feat: Moves antimacro to a configuration (#1323)
### Summary - [X] Moves antimacro to `Distribution/Configuration/antimacro.json`. - [X] Disables antimacro by default.
This commit is contained in:
parent
4f67b1174f
commit
4707666890
7 changed files with 169 additions and 39 deletions
|
|
@ -1703,4 +1703,20 @@ public static class Utility
|
|||
|
||||
return center;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static int GetUnderlyingNumericBitLength(this TypeCode typeCode) =>
|
||||
typeCode switch
|
||||
{
|
||||
TypeCode.Byte => 8,
|
||||
TypeCode.SByte => 8,
|
||||
TypeCode.Int16 => 16,
|
||||
TypeCode.UInt16 => 16,
|
||||
TypeCode.Char => 16,
|
||||
TypeCode.Int32 => 32,
|
||||
TypeCode.UInt32 => 32,
|
||||
TypeCode.Int64 => 64,
|
||||
TypeCode.UInt64 => 64,
|
||||
_ => 64
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue