net9.0
namespace System
{
[RequiresPreviewFeatures("Generic Math is in preview.", Url = "https://aka.ms/dotnet-warnings/generic-math-preview")]
public interface INumber<TSelf> : IAdditionOperators<TSelf, TSelf, TSelf>, IAdditiveIdentity<TSelf, TSelf>, IComparable, IComparable<TSelf>, IComparisonOperators<TSelf, TSelf>, IDecrementOperators<TSelf>, IDivisionOperators<TSelf, TSelf, TSelf>, IEqualityOperators<TSelf, TSelf>, IEquatable<TSelf>, IFormattable, IIncrementOperators<TSelf>, IModulusOperators<TSelf, TSelf, TSelf>, IMultiplicativeIdentity<TSelf, TSelf>, IMultiplyOperators<TSelf, TSelf, TSelf>, IParseable<TSelf>, ISpanFormattable, ISpanParseable<TSelf>, ISubtractionOperators<TSelf, TSelf, TSelf>, IUnaryNegationOperators<TSelf, TSelf>, IUnaryPlusOperators<TSelf, TSelf>
where TSelf, INumber<TSelf>!
{
static bool TryParse(ReadOnlySpan<char> s, NumberStyles style, IFormatProvider? provider, out TSelf result);
}
}
.NET | 6.07.08.09.0 |
---|---|
Information specific to net9.0 | |
Assemblies | System.Runtime , Version=6.0.0.0, PublicKeyToken=b03f5f7f11d50a3a System.Runtime , Version=7.0.0.0, PublicKeyToken=b03f5f7f11d50a3a |
Referencing | Your project needs a package reference to |
Package | System.Runtime.Experimental (6.0.2) net6.0 |
Platform Restrictions | This API is supported on all platforms. |