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

定義

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

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

型パラメーター

TOther

変換先の value 型。

パラメーター

value
Int16

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

result
TOther

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

戻り値

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

実装

適用対象