private void CheckPowerOf2(string sName, int iValue) { if (IntegerMath.IsPowerOf2(iValue) == false) { throw new ArgumentException(sName + "(=" + iValue.ToString() + ") must be a power of two(like 2,4,8,32,64,...)!"); } }
private void CheckPowerOf2(string sName, int iValue) { if (IntegerMath.IsPowerOf2(iValue) == false) { throw new ArgumentException(sName + "(=" + iValue.ToString() + ") must be a power of two(like 2,4,8,32,64,...)!"); } }