20 implementations of TryConvertFromTruncating
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
819static bool INumberBase<byte>.TryConvertFromTruncating<TOther>(TOther value, out byte result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1636static bool INumberBase<char>.TryConvertFromTruncating<TOther>(TOther value, out char result)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1571static bool INumberBase<decimal>.TryConvertFromTruncating<TOther>(TOther value, out decimal result)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1224static bool INumberBase<double>.TryConvertFromTruncating<TOther>(TOther value, out double result)
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1926static bool INumberBase<Half>.TryConvertFromTruncating<TOther>(TOther value, out Half result)
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1644static bool INumberBase<Int128>.TryConvertFromTruncating<TOther>(TOther value, out Int128 result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1025static bool INumberBase<short>.TryConvertFromTruncating<TOther>(TOther value, out short result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1065static bool INumberBase<int>.TryConvertFromTruncating<TOther>(TOther value, out int result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1060static bool INumberBase<long>.TryConvertFromTruncating<TOther>(TOther value, out long result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1056static bool INumberBase<nint>.TryConvertFromTruncating<TOther>(TOther value, out nint result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1408static bool INumberBase<NFloat>.TryConvertFromTruncating<TOther>(TOther value, out NFloat result)
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
989static bool INumberBase<sbyte>.TryConvertFromTruncating<TOther>(TOther value, out sbyte result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1243static bool INumberBase<float>.TryConvertFromTruncating<TOther>(TOther value, out float result)
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1705static bool INumberBase<UInt128>.TryConvertFromTruncating<TOther>(TOther value, out UInt128 result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
838static bool INumberBase<ushort>.TryConvertFromTruncating<TOther>(TOther value, out ushort result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
877static bool INumberBase<uint>.TryConvertFromTruncating<TOther>(TOther value, out uint result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
876static bool INumberBase<ulong>.TryConvertFromTruncating<TOther>(TOther value, out ulong result) => TryConvertFromTruncating(value, out result);
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
879static bool INumberBase<nuint>.TryConvertFromTruncating<TOther>(TOther value, out nuint result) => TryConvertFromTruncating(value, out result);
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
4422static bool INumberBase<BigInteger>.TryConvertFromTruncating<TOther>(TOther value, out BigInteger result) => TryConvertFromTruncating(value, out result);
System\Numerics\Complex.cs (1)
1490static bool INumberBase<Complex>.TryConvertFromTruncating<TOther>(TOther value, out Complex result)
21 references to TryConvertFromTruncating
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Byte.cs (1)
817/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1634/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (1)
1569/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1222/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
1924/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int128.cs (1)
1642/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int16.cs (1)
1023/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
1063/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Int64.cs (1)
1058/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\IntPtr.cs (1)
1054/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Numerics\INumberBase.cs (1)
117else if (!TSelf.TryConvertFromTruncating(value, out result) && !TOther.TryConvertToTruncating<TSelf>(value, out result))
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1406/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\SByte.cs (1)
987/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1241/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt128.cs (1)
1703/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt16.cs (1)
836/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt32.cs (1)
875/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UInt64.cs (1)
874/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
src\libraries\System.Private.CoreLib\src\System\UIntPtr.cs (1)
877/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
System.Runtime.Numerics (2)
System\Numerics\BigInteger.cs (1)
4420/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />
System\Numerics\Complex.cs (1)
1488/// <inheritdoc cref="INumberBase{TSelf}.TryConvertFromTruncating{TOther}(TOther, out TSelf)" />