IntPtr.INumberBase<IntPtr>.TryConvertToSaturating<TOther> メソッド

定義

現在の型のインスタンスを別の型に変換し、現在の型の表現可能な範囲外の値を飽和させます。

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

型パラメーター

TOther

変換先の value 型。

パラメーター

value
IntPtr

nativeint

のインスタンス TOtherを作成するために使用される値。

result
TOther

このメソッドから戻るときに、 からvalue変換された のTOtherインスタンスが格納されます。

戻り値

false がサポートされていない場合 TOther は 。それ以外の場合 trueは 。

実装

適用対象