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

定義

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

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

型パラメーター

TOther

変換先の value 型。

パラメーター

value
Int16

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

result
TOther

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

戻り値

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

実装

適用対象