Decimal.ConvertToIntegerNative<TInteger>(Decimal) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a value to a specified integer type using platform specific behavior on overflow.
public:
generic <typename TInteger>
where TInteger : System::Numerics::IBinaryInteger<TInteger> static TInteger ConvertToIntegerNative(System::Decimal value) = System::Numerics::IFloatingPoint<System::Decimal>::ConvertToIntegerNative;
C#
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
- TInteger
The integer type to which value
is converted.
- value
- Decimal
The value to be converted.
TInteger
An instance of TInteger
created from value
.
Продукт | Версии |
---|---|
.NET | 9, 10 |
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: