BigInteger.ExclusiveOr(BigInteger, BigInteger) 연산자

정의

BigInteger 값에 대해 비트 배타적 Or(XOr) 연산을 수행합니다.

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) = System::Numerics::IBitwiseOperators<System::Numerics::BigInteger, System::Numerics::BigInteger, System::Numerics::BigInteger>::op_ExclusiveOr;
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 Xor (left As BigInteger, right As BigInteger) As BigInteger

매개 변수

left
BigInteger

첫 번째 값입니다.

right
BigInteger

두 번째 값입니다.

반환

BigInteger

비트 Or 연산의 결과입니다.

구현

설명

비트 배타적 Or 연산 true 의 결과는 두 비트의 값이 다른 경우이고, 그렇지 않으면 다음과 같습니다 false. 다음 표에서는 배타적 Or 작업을 보여 줍니다.

비트 x in left 비트 x in right 반환 값
0 0 0
0 1 1
1 0 1
1 1 0

이 메서드는 ExclusiveOr 다음과 같은 코드를 사용하도록 설정합니다.

BigInteger number1 = BigInteger.Pow(2, 127);
BigInteger number2 = BigInteger.Multiply(163, 124);
BigInteger result = number1 ^ number2;
Dim number1 As BigInteger = BigInteger.Pow(2, 127)
Dim number2 As BigInteger = BigInteger.Multiply(163, 124)
Dim result As BigInteger = number1 XOr number2

이 메서드는 ExclusiveOr 가상 기호 확장을 사용하여 두 값의 보수 표현에 있는 것처럼 두 BigInteger 값에 대해 비트 배타적 Or 연산을 수행합니다.

적용 대상