INumberBase<TSelf>.TryConvertFromTruncating<TOther> Yöntem

Tanım

Geçerli türün temsil edilebilir aralığının dışında kalan değerleri keserek bir değeri geçerli türün bir örneğine dönüştürmeye çalışır.

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

Tür Parametreleri

TOther

türü value.

Parametreler

value
TOther

örneğini TSelfoluşturmak için kullanılan değer.

result
TSelf

Bu yöntem döndürdüğünde, dosyasından valuedönüştürülmüş bir örneğini TSelf içerir.

Döndürülenler

false desteklenmiyorsa; desteklenmiyorsa TOther , true.

Şunlara uygulanır