Decimal.ConvertToIntegerNative<TInteger>(Decimal) Metodo

Definizione

Converte un valore in un tipo integer specificato utilizzando un comportamento specifico della piattaforma in caso di overflow.

public:
generic <typename TInteger>
 where TInteger : System::Numerics::IBinaryInteger<TInteger> static TInteger ConvertToIntegerNative(System::Decimal value) = System::Numerics::IFloatingPoint<System::Decimal>::ConvertToIntegerNative;
public static TInteger ConvertToIntegerNative<TInteger>(decimal value) where TInteger : System.Numerics.IBinaryInteger<TInteger>;
static member ConvertToIntegerNative : decimal -> 'Integer (requires 'Integer :> System.Numerics.IBinaryInteger<'Integer>)
Public Shared Function ConvertToIntegerNative(Of TInteger As IBinaryInteger(Of TInteger)) (value As Decimal) As TInteger

Parametri di tipo

TInteger

Tipo integer in cui value viene convertito.

Parametri

value
Decimal

Valore da convertire.

Valori restituiti

TInteger

Istanza di TInteger creata da value.

Implementazioni

Si applica a