<PackageReference Include="System.Memory" Version="4.5.3" />

MutableDecimal

namespace System { internal struct MutableDecimal { public uint Flags; public uint High; public uint Low; public uint Mid; private const uint SignMask = 2147483648; private const uint ScaleMask = 16711680; private const int ScaleShift = 16; public bool IsNegative { get { return ((int)Flags & -2147483648) != 0; } set { Flags = (uint)((int)(Flags & 2147483647) | (value ? (-2147483648) : 0)); } } public int Scale { get { return (byte)(Flags >> 16); } set { Flags = (uint)(((int)Flags & -16711681) | (value << 16)); } } } }