INumberBase<TSelf>.TryConvertFromSaturating<TOther> Methode

Definitie

Hiermee wordt geprobeerd een waarde te converteren naar een exemplaar van het huidige type, waarbij alle waarden die buiten het vertegenwoordigbare bereik van het huidige type vallen, worden opgezadigd.

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

Type parameters

TOther

Het type value.

Parameters

value
TOther

De waarde die wordt gebruikt om het exemplaar van TSelf.

result
TSelf

Wanneer deze methode wordt geretourneerd, bevat het een exemplaar van TSelf geconverteerd van value.

Retouren

falseals TOther dit niet wordt ondersteund; anders. true

Van toepassing op