BitField.BitField.operator C# (CSharp) Method

operator() static public method

各ビットに対して AND 演算。
/// a.Width != b.Width のとき発生。 ///
static public operator ( ) : BitField
return BitField
		static public BitField operator& (BitField a, BitField b)
		{
			if(a.Width != b.Width)
				throw new BitFieldException("width not match");

			ulong val = a.Value & b.Value;
			return new BitFieldImmediate(a.Msb, a.Lsb, val);
		}

Same methods

BitField::operator ( ) : bool