INumberBase<TSelf>.TryConvertToTruncating<TOther> メソッド

定義

現在の型のインスタンスを別の型に変換し、現在の型の表現可能な範囲外の値を切り捨てようとします。

protected:
generic <typename TOther>
 where TOther : System::Numerics::INumberBase<TOther> static bool TryConvertToTruncating(TSelf value, [Runtime::InteropServices::Out] TOther % result);
protected static abstract bool TryConvertToTruncating<TOther>(TSelf value, out TOther result) where TOther : System.Numerics.INumberBase<TOther>;
static member TryConvertToTruncating : 'Self * 'Other -> bool (requires 'Other :> System.Numerics.INumberBase<'Other>)
Protected Shared Function TryConvertToTruncating(Of TOther As INumberBase(Of TOther)) (value As TSelf, ByRef result As TOther) As Boolean

型パラメーター

TOther

valueの変換先の型。

パラメーター

value
TSelf

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

result
TOther

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

返品

がサポートされていない場合は a0/&。それ以外の場合は。

適用対象