internal static void AssertIsPowerOfTwo(ulong value, string paramName) { if (!NetUtility.IsPowerOfTwo(value)) { throw new ArgumentOutOfRangeException(paramName, "Value must be a power of two."); } }