BigInteger.Inequality Operador

Definição

Retorna um valor que indica se dois valores numéricos não são iguais.Returns a value that indicates whether two numeric values are not equal.

Sobrecargas

Inequality(Int64, BigInteger)

Retorna um valor que indica se um inteiro com sinal de 64 bits e um valor BigInteger não são iguais.Returns a value that indicates whether a 64-bit signed integer and a BigInteger value are not equal.

Inequality(BigInteger, Int64)

Retorna um valor que indica se um valor BigInteger e um inteiro com sinal de 64 bits não são iguais.Returns a value that indicates whether a BigInteger value and a 64-bit signed integer are not equal.

Inequality(BigInteger, BigInteger)

Retorna um valor que indica se dois objetos BigInteger têm valores diferentes.Returns a value that indicates whether two BigInteger objects have different values.

Inequality(BigInteger, UInt64)

Retorna um valor que indica se um valor BigInteger e um inteiro sem sinal de 64 bits não são iguais.Returns a value that indicates whether a BigInteger value and a 64-bit unsigned integer are not equal.

Inequality(UInt64, BigInteger)

Retorna um valor que indica se um inteiro sem sinal de 64 bits e um valor BigInteger não são iguais.Returns a value that indicates whether a 64-bit unsigned integer and a BigInteger value are not equal.

Inequality(Int64, BigInteger)

Retorna um valor que indica se um inteiro com sinal de 64 bits e um valor BigInteger não são iguais.Returns a value that indicates whether a 64-bit signed integer and a BigInteger value are not equal.

public:
 static bool operator !=(long left, System::Numerics::BigInteger right);
public static bool operator != (long left, System.Numerics.BigInteger right);
static member op_Inequality : int64 * System.Numerics.BigInteger -> bool
Public Shared Operator != (left As Long, right As BigInteger) As Boolean

Parâmetros

left
Int64

O primeiro valor a ser comparado.The first value to compare.

right
BigInteger

O segundo valor a ser comparado.The second value to compare.

Retornos

Boolean

true se left e right não forem iguais; caso contrário, false.true if left and right are not equal; otherwise, false.

Comentários

O Inequality método define a operação do operador de desigualdade para BigInteger valores.The Inequality method defines the operation of the inequality operator for BigInteger values. Ele permite que o código seja o seguinte:It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(2, 63);
long number = Int64.MaxValue;
if (number != bigNumber)
{
   // Do something...
}
Dim bigNumber As BigInteger = BigInteger.Pow(2, 63)
Dim number As Long = Int64.MaxValue
If number <> bigNumber Then
   ' Do something...
End If   

Idiomas que não dão suporte a operadores personalizados podem testar desigualdade usando uma das seguintes técnicas:Languages that do not support custom operators can test for inequality by using one of the following techniques:

Se left for um Byte Int16 valor,, Int32 ,, SByte UInt16 ou UInt32 , ele será convertido implicitamente em um Int64 valor quando a operação for executada.If left is a Byte, Int16, Int32, SByte, UInt16, or UInt32 value, it is implicitly converted to an Int64 value when the operation is performed.

Confira também

Aplica-se a

Inequality(BigInteger, Int64)

Retorna um valor que indica se um valor BigInteger e um inteiro com sinal de 64 bits não são iguais.Returns a value that indicates whether a BigInteger value and a 64-bit signed integer are not equal.

public:
 static bool operator !=(System::Numerics::BigInteger left, long right);
public static bool operator != (System.Numerics.BigInteger left, long right);
static member op_Inequality : System.Numerics.BigInteger * int64 -> bool
Public Shared Operator != (left As BigInteger, right As Long) As Boolean

Parâmetros

left
BigInteger

O primeiro valor a ser comparado.The first value to compare.

right
Int64

O segundo valor a ser comparado.The second value to compare.

Retornos

Boolean

true se left e right não forem iguais; caso contrário, false.true if left and right are not equal; otherwise, false.

Comentários

O Inequality método define a operação do operador de desigualdade para BigInteger valores.The Inequality method defines the operation of the inequality operator for BigInteger values. Ele permite que o código seja o seguinte:It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(2, 63);
long number = Int64.MaxValue;
if (bigNumber != number)
{
   // Do something...
}
Dim bigNumber As BigInteger = BigInteger.Pow(2, 63)
Dim number As Long = Int64.MaxValue
If bigNumber <> number Then
   ' Do something...
End If   

Idiomas que não dão suporte a operadores personalizados podem testar desigualdade usando uma das seguintes técnicas:Languages that do not support custom operators can test for inequality by using one of the following techniques:

Se right for um Byte Int16 valor,, Int32 ,, SByte UInt16 ou UInt32 , ele será convertido implicitamente em um Int64 valor quando a operação for executada.If right is a Byte, Int16, Int32, SByte, UInt16, or UInt32 value, it is implicitly converted to an Int64 value when the operation is performed.

O método equivalente para esse operador é BigInteger.CompareTo(Int64) .The equivalent method for this operator is BigInteger.CompareTo(Int64).

Confira também

Aplica-se a

Inequality(BigInteger, BigInteger)

Retorna um valor que indica se dois objetos BigInteger têm valores diferentes.Returns a value that indicates whether two BigInteger objects have different values.

public:
 static bool operator !=(System::Numerics::BigInteger left, System::Numerics::BigInteger right);
public static bool operator != (System.Numerics.BigInteger left, System.Numerics.BigInteger right);
static member op_Inequality : System.Numerics.BigInteger * System.Numerics.BigInteger -> bool
Public Shared Operator != (left As BigInteger, right As BigInteger) As Boolean

Parâmetros

left
BigInteger

O primeiro valor a ser comparado.The first value to compare.

right
BigInteger

O segundo valor a ser comparado.The second value to compare.

Retornos

Boolean

true se left e right não forem iguais; caso contrário, false.true if left and right are not equal; otherwise, false.

Comentários

O Inequality método define a operação do operador de desigualdade para BigInteger valores.The Inequality method defines the operation of the inequality operator for BigInteger values. Ele permite que o código seja o seguinte:It enables code such as the following:

BigInteger number1 = 945834723;
BigInteger number2 = 345145625;
BigInteger number3 = 945834723;
Console.WriteLine(number1 != number2);             // Displays True
Console.WriteLine(number1 != number3);             // Displays False
Dim number1 As BigInteger = 945834723
Dim number2 As BigInteger = 345145625
Dim number3 As BigInteger = 945834723 
Console.WriteLine(number1 <> number2)                  ' Displays True
Console.WriteLine(number1 <> number3)                  ' Displays False

Idiomas que não dão suporte a operadores personalizados podem testar desigualdade usando uma das seguintes técnicas:Languages that do not support custom operators can test for inequality by using one of the following techniques:

O método equivalente para esse operador é BigInteger.Compare(BigInteger, BigInteger) .The equivalent method for this operator is BigInteger.Compare(BigInteger, BigInteger).

Confira também

Aplica-se a

Inequality(BigInteger, UInt64)

Importante

Esta API não está em conformidade com CLS.

Retorna um valor que indica se um valor BigInteger e um inteiro sem sinal de 64 bits não são iguais.Returns a value that indicates whether a BigInteger value and a 64-bit unsigned integer are not equal.

public:
 static bool operator !=(System::Numerics::BigInteger left, System::UInt64 right);
[System.CLSCompliant(false)]
public static bool operator != (System.Numerics.BigInteger left, ulong right);
[<System.CLSCompliant(false)>]
static member op_Inequality : System.Numerics.BigInteger * uint64 -> bool
Public Shared Operator != (left As BigInteger, right As ULong) As Boolean

Parâmetros

left
BigInteger

O primeiro valor a ser comparado.The first value to compare.

right
UInt64

O segundo valor a ser comparado.The second value to compare.

Retornos

Boolean

true se left e right não forem iguais; caso contrário, false.true if left and right are not equal; otherwise, false.

Atributos

Comentários

O Inequality método define a operação do operador de desigualdade para BigInteger valores.The Inequality method defines the operation of the inequality operator for BigInteger values. Ele permite que o código seja o seguinte:It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(2, 63) - BigInteger.One;
ulong uNumber = Int64.MaxValue & 0x7FFFFFFFFFFFFFFF;
if (bigNumber != uNumber)
{
   // Do something...
}
Dim bigNumber As BigInteger = BigInteger.Pow(2, 63) - BigInteger.One
Dim uNumber As ULong = CULng(Int64.MaxValue And CULng(&h7FFFFFFFFFFFFFFF))
If bigNumber <> uNumber Then
   ' Do something...
End If

Idiomas que não dão suporte a operadores personalizados podem testar desigualdade usando uma das seguintes técnicas:Languages that do not support custom operators can test for inequality by using one of the following techniques:

Confira também

Aplica-se a

Inequality(UInt64, BigInteger)

Importante

Esta API não está em conformidade com CLS.

Retorna um valor que indica se um inteiro sem sinal de 64 bits e um valor BigInteger não são iguais.Returns a value that indicates whether a 64-bit unsigned integer and a BigInteger value are not equal.

public:
 static bool operator !=(System::UInt64 left, System::Numerics::BigInteger right);
[System.CLSCompliant(false)]
public static bool operator != (ulong left, System.Numerics.BigInteger right);
[<System.CLSCompliant(false)>]
static member op_Inequality : uint64 * System.Numerics.BigInteger -> bool
Public Shared Operator != (left As ULong, right As BigInteger) As Boolean

Parâmetros

left
UInt64

O primeiro valor a ser comparado.The first value to compare.

right
BigInteger

O segundo valor a ser comparado.The second value to compare.

Retornos

Boolean

true se left e right não forem iguais; caso contrário, false.true if left and right are not equal; otherwise, false.

Atributos

Comentários

O Inequality método define a operação do operador de desigualdade para BigInteger valores.The Inequality method defines the operation of the inequality operator for BigInteger values. Ele permite que o código seja o seguinte:It enables code such as the following:

BigInteger bigNumber = BigInteger.Pow(2, 63) - BigInteger.One;
ulong uNumber = Int64.MaxValue & 0x7FFFFFFFFFFFFFFF;
if (uNumber != bigNumber)
{
   // Do something...
}
Dim bigNumber As BigInteger = BigInteger.Pow(2, 63) - BigInteger.One
Dim uNumber As ULong = CULng(Int64.MaxValue And CULng(&h7FFFFFFFFFFFFFFF))
If uNumber <> bigNumber Then
   ' Do something...
End If

Idiomas que não dão suporte a operadores personalizados podem testar desigualdade usando uma das seguintes técnicas:Languages that do not support custom operators can test for inequality by using one of the following techniques:

Confira também

Aplica-se a