C# BigInteger ExclusiveOr

Description

BigInteger ExclusiveOr Performs a bitwise exclusive Or (XOr) operation on two BigInteger values.

Syntax

BigInteger.ExclusiveOr has the following syntax.


public static BigInteger operator ^(
  BigInteger left,
  BigInteger right
)

Parameters

BigInteger.ExclusiveOr has the following parameters.

  • left - The first value.
  • right - The second value.

Returns

BigInteger.ExclusiveOr method returns The result of the bitwise Or operation.

Example


//from  ww w  . ja  v  a2  s .co m
using System;
using System.IO;
using System.Numerics;

public class Example
{
   public static void Main()
   {
        BigInteger number1 = BigInteger.Pow(2, 127);
        BigInteger number2 = BigInteger.Multiply(163, 124);
        BigInteger result = number1 ^ number2;

   }
}




















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex