BigInteger.BitwiseAnd(BigInteger, BigInteger) BigInteger.BitwiseAnd(BigInteger, BigInteger) BigInteger.BitwiseAnd(BigInteger, BigInteger) BigInteger.BitwiseAnd(BigInteger, BigInteger) Operator

Definição

Executa uma operação And bit a bit em dois valores BigInteger.Performs a bitwise And operation on two BigInteger values.

public:
 static System::Numerics::BigInteger operator &(System::Numerics::BigInteger left, System::Numerics::BigInteger right);
public static System.Numerics.BigInteger operator & (System.Numerics.BigInteger left, System.Numerics.BigInteger right);
static member ( &&& ) : System.Numerics.BigInteger * System.Numerics.BigInteger -> System.Numerics.BigInteger
Public Shared Operator And (left As BigInteger, right As BigInteger) As BigInteger

Parâmetros

left
BigInteger BigInteger BigInteger BigInteger

O primeiro valor.The first value.

right
BigInteger BigInteger BigInteger BigInteger

O segundo valor.The second value.

Retornos

O resultado da operação And bit a bit.The result of the bitwise And operation.

Comentários

O BitwiseAnd método define a operação And bit- BigInteger a-bit para valores.The BitwiseAnd method defines the bitwise And operation for BigInteger values. A operação And bit-up definirá um bit de resultado somente se left os right bits correspondentes no e também estiverem definidos, conforme mostrado na tabela a seguir.The bitwise And operation sets a result bit only if the corresponding bits in left and right are also set, as shown in the following table.

Bit emleftBit in left Bit emrightBit in right Bit no resultadoBit in result
00 00 00
11 00 00
11 11 11
00 11 00

O BitwiseAnd método habilita um código como o seguinte:The BitwiseAnd method enables code such as the following:

BigInteger number1 = BigInteger.Add(Int64.MaxValue, Int32.MaxValue);
BigInteger number2 = BigInteger.Pow(Byte.MaxValue, 10);
BigInteger result = number1 & number2;
Dim number1 As BigInteger = BigInteger.Add(Int64.MaxValue, Int32.MaxValue)
Dim number2 As BigInteger = BigInteger.Pow(Byte.MaxValue, 10)
Dim result As BigInteger = number1 And number2

O BitwiseAnd método executa a operação And bit-a BigInteger -bit em dois valores como se estivessem na representação complementar de dois com a extensão de assinatura virtual.The BitwiseAnd method performs the bitwise And operation on two BigInteger values as if they were both in two's complement representation with virtual sign extension.

Aplica-se a