语言

UIntPtr.INumberBase<UIntPtr>.TryConvertToTruncating<TOther> 方法

定义

尝试将当前类型的实例转换为另一种类型,截断属于当前类型的可表示范围之外的任何值。

generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool System.Numerics.INumberBase<nuint>.TryConvertToTruncating(UIntPtr value, [Runtime::InteropServices::Out] TOther % result) = System::Numerics::INumberBase<UIntPtr>::TryConvertToTruncating;
static bool INumberBase<UIntPtr>.TryConvertToTruncating<TOther>(UIntPtr value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member System.Numerics.INumberBase<nuint>.TryConvertToTruncating : unativeint * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
 Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As UIntPtr, ByRef result As TOther) As Boolean Implements INumberBase(Of UIntPtr).TryConvertToTruncating

类型参数

TOther

应转换为的类型 value 。

参数

value
UIntPtr

unativeint

用于创建 实例的值 TOther。

result
TOther

此方法返回时,包含从TOther中转换的value实例。

返回

如果 不支持,则为 ;否则为 >。

实现

适用于