IBinaryNumber<TSelf> Интерфейс
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Определяет число, представленное в формате base-2.
generic <typename TSelf>
where TSelf : IBinaryNumber<TSelf>public interface class IBinaryNumber : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, System::Numerics::IAdditionOperators<TSelf, TSelf, TSelf>, System::Numerics::IAdditiveIdentity<TSelf, TSelf>, System::Numerics::IBitwiseOperators<TSelf, TSelf, TSelf>, System::Numerics::IComparisonOperators<TSelf, TSelf, bool>, System::Numerics::IDecrementOperators<TSelf>, System::Numerics::IDivisionOperators<TSelf, TSelf, TSelf>, System::Numerics::IEqualityOperators<TSelf, TSelf, bool>, System::Numerics::IIncrementOperators<TSelf>, System::Numerics::IModulusOperators<TSelf, TSelf, TSelf>, System::Numerics::IMultiplicativeIdentity<TSelf, TSelf>, System::Numerics::IMultiplyOperators<TSelf, TSelf, TSelf>, System::Numerics::INumber<TSelf>, System::Numerics::INumberBase<TSelf>, System::Numerics::ISubtractionOperators<TSelf, TSelf, TSelf>, System::Numerics::IUnaryNegationOperators<TSelf, TSelf>, System::Numerics::IUnaryPlusOperators<TSelf, TSelf>
generic <typename TSelf>
where TSelf : IBinaryNumber<TSelf>public interface class IBinaryNumber : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, IUtf8SpanParsable<TSelf>, System::Numerics::IAdditionOperators<TSelf, TSelf, TSelf>, System::Numerics::IAdditiveIdentity<TSelf, TSelf>, System::Numerics::IBitwiseOperators<TSelf, TSelf, TSelf>, System::Numerics::IComparisonOperators<TSelf, TSelf, bool>, System::Numerics::IDecrementOperators<TSelf>, System::Numerics::IDivisionOperators<TSelf, TSelf, TSelf>, System::Numerics::IEqualityOperators<TSelf, TSelf, bool>, System::Numerics::IIncrementOperators<TSelf>, System::Numerics::IModulusOperators<TSelf, TSelf, TSelf>, System::Numerics::IMultiplicativeIdentity<TSelf, TSelf>, System::Numerics::IMultiplyOperators<TSelf, TSelf, TSelf>, System::Numerics::INumber<TSelf>, System::Numerics::INumberBase<TSelf>, System::Numerics::ISubtractionOperators<TSelf, TSelf, TSelf>, System::Numerics::IUnaryNegationOperators<TSelf, TSelf>, System::Numerics::IUnaryPlusOperators<TSelf, TSelf>
public interface IBinaryNumber<TSelf> : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IBitwiseOperators<TSelf,TSelf,TSelf>, System.Numerics.IComparisonOperators<TSelf,TSelf,bool>, System.Numerics.IDecrementOperators<TSelf>, System.Numerics.IDivisionOperators<TSelf,TSelf,TSelf>, System.Numerics.IEqualityOperators<TSelf,TSelf,bool>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.IModulusOperators<TSelf,TSelf,TSelf>, System.Numerics.IMultiplicativeIdentity<TSelf,TSelf>, System.Numerics.IMultiplyOperators<TSelf,TSelf,TSelf>, System.Numerics.INumber<TSelf>, System.Numerics.INumberBase<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : IBinaryNumber<TSelf>
public interface IBinaryNumber<TSelf> : IComparable<TSelf>, IEquatable<TSelf>, IParsable<TSelf>, ISpanParsable<TSelf>, IUtf8SpanParsable<TSelf>, System.Numerics.IAdditionOperators<TSelf,TSelf,TSelf>, System.Numerics.IAdditiveIdentity<TSelf,TSelf>, System.Numerics.IBitwiseOperators<TSelf,TSelf,TSelf>, System.Numerics.IComparisonOperators<TSelf,TSelf,bool>, System.Numerics.IDecrementOperators<TSelf>, System.Numerics.IDivisionOperators<TSelf,TSelf,TSelf>, System.Numerics.IEqualityOperators<TSelf,TSelf,bool>, System.Numerics.IIncrementOperators<TSelf>, System.Numerics.IModulusOperators<TSelf,TSelf,TSelf>, System.Numerics.IMultiplicativeIdentity<TSelf,TSelf>, System.Numerics.IMultiplyOperators<TSelf,TSelf,TSelf>, System.Numerics.INumber<TSelf>, System.Numerics.INumberBase<TSelf>, System.Numerics.ISubtractionOperators<TSelf,TSelf,TSelf>, System.Numerics.IUnaryNegationOperators<TSelf,TSelf>, System.Numerics.IUnaryPlusOperators<TSelf,TSelf> where TSelf : IBinaryNumber<TSelf>
type IBinaryNumber<'Self (requires 'Self :> IBinaryNumber<'Self>)> = interface
interface IComparable
interface IComparable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IEquatable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IFormattable
interface IParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface ISpanFormattable
interface ISpanParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IAdditionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IAdditiveIdentity<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IBitwiseOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IComparisonOperators<'Self, 'Self, bool (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IEqualityOperators<'Self, 'Self, bool (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IDecrementOperators<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IDivisionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IIncrementOperators<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IModulusOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IMultiplicativeIdentity<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IMultiplyOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface INumber<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface INumberBase<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface ISubtractionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUnaryNegationOperators<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUnaryPlusOperators<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
type IBinaryNumber<'Self (requires 'Self :> IBinaryNumber<'Self>)> = interface
interface IComparable
interface IComparable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IEquatable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IFormattable
interface IParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface ISpanFormattable
interface ISpanParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IAdditionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IAdditiveIdentity<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IBitwiseOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IComparisonOperators<'Self, 'Self, bool (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IEqualityOperators<'Self, 'Self, bool (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IDecrementOperators<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IDivisionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IIncrementOperators<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IModulusOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IMultiplicativeIdentity<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IMultiplyOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface INumber<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface INumberBase<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface ISubtractionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUnaryNegationOperators<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUnaryPlusOperators<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
type IBinaryNumber<'Self (requires 'Self :> IBinaryNumber<'Self>)> = interface
interface IComparable
interface IComparable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IEquatable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IFormattable
interface IParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface ISpanFormattable
interface ISpanParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IAdditionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IAdditiveIdentity<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IBitwiseOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IComparisonOperators<'Self, 'Self, bool (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IEqualityOperators<'Self, 'Self, bool (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IDecrementOperators<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IDivisionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IIncrementOperators<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IModulusOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IMultiplicativeIdentity<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IMultiplyOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface INumber<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface INumberBase<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface IUtf8SpanFormattable
interface IUtf8SpanParsable<'Self (requires 'Self :> IBinaryNumber<'Self>)>
interface ISubtractionOperators<'Self, 'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUnaryNegationOperators<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
interface IUnaryPlusOperators<'Self, 'Self (requires 'Self :> IBinaryNumber<'Self> and 'Self :> IBinaryNumber<'Self>)>
Public Interface IBinaryNumber(Of TSelf)
Implements IAdditionOperators(Of TSelf, TSelf, TSelf), IAdditiveIdentity(Of TSelf, TSelf), IBitwiseOperators(Of TSelf, TSelf, TSelf), IComparable(Of TSelf), IComparisonOperators(Of TSelf, TSelf, Boolean), IDecrementOperators(Of TSelf), IDivisionOperators(Of TSelf, TSelf, TSelf), IEqualityOperators(Of TSelf, TSelf, Boolean), IEquatable(Of TSelf), IIncrementOperators(Of TSelf), IModulusOperators(Of TSelf, TSelf, TSelf), IMultiplicativeIdentity(Of TSelf, TSelf), IMultiplyOperators(Of TSelf, TSelf, TSelf), INumber(Of TSelf), INumberBase(Of TSelf), IParsable(Of TSelf), ISpanParsable(Of TSelf), ISubtractionOperators(Of TSelf, TSelf, TSelf), IUnaryNegationOperators(Of TSelf, TSelf), IUnaryPlusOperators(Of TSelf, TSelf)
Public Interface IBinaryNumber(Of TSelf)
Implements IAdditionOperators(Of TSelf, TSelf, TSelf), IAdditiveIdentity(Of TSelf, TSelf), IBitwiseOperators(Of TSelf, TSelf, TSelf), IComparable(Of TSelf), IComparisonOperators(Of TSelf, TSelf, Boolean), IDecrementOperators(Of TSelf), IDivisionOperators(Of TSelf, TSelf, TSelf), IEqualityOperators(Of TSelf, TSelf, Boolean), IEquatable(Of TSelf), IIncrementOperators(Of TSelf), IModulusOperators(Of TSelf, TSelf, TSelf), IMultiplicativeIdentity(Of TSelf, TSelf), IMultiplyOperators(Of TSelf, TSelf, TSelf), INumber(Of TSelf), INumberBase(Of TSelf), IParsable(Of TSelf), ISpanParsable(Of TSelf), ISubtractionOperators(Of TSelf, TSelf, TSelf), IUnaryNegationOperators(Of TSelf, TSelf), IUnaryPlusOperators(Of TSelf, TSelf), IUtf8SpanParsable(Of TSelf)
Параметры типа
- TSelf
Тип, реализующий интерфейс .
- Производный
- Реализации
-
IComparable IComparable<TSelf> IEquatable<TSelf> IFormattable IParsable<TSelf> ISpanFormattable ISpanParsable<TSelf> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<TSelf,TSelf> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<TSelf> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<TSelf> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<TSelf> INumberBase<TSelf> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<TSelf>
Свойства
AllBitsSet |
Возвращает экземпляр двоичного типа, в котором заданы все биты. |
Методы
CompareTo(Object) |
Сравнивает текущий экземпляр с другим объектом того же типа и возвращает целое число, которое показывает, расположен ли текущий экземпляр перед, после или на той же позиции в порядке сортировки, что и другой объект. (Унаследовано от IComparable) |
CompareTo(T) |
Сравнивает текущий экземпляр с другим объектом того же типа и возвращает целое число, которое показывает, расположен ли текущий экземпляр перед, после или на той же позиции в порядке сортировки, что и другой объект. (Унаследовано от IComparable<T>) |
Equals(T) |
Указывает, равен ли текущий объект другому объекту того же типа. (Унаследовано от IEquatable<T>) |
IsPow2(TSelf) |
Определяет, является ли значение степенью 2. |
Log2(TSelf) |
Вычисляет значение log2. |
ToString(String, IFormatProvider) |
Форматирует значение текущего экземпляра, используя указанный формат. (Унаследовано от IFormattable) |
TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Пытается отформатировать значение текущего экземпляра как UTF-8 в предоставленный диапазон байтов. (Унаследовано от IUtf8SpanFormattable) |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Пытается отформатировать значение текущего экземпляра в предоставленный диапазон символов. (Унаследовано от ISpanFormattable) |
Явные реализации интерфейса
IUtf8SpanFormattable.TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
Определяет число, представленное в формате base-2. (Унаследовано от INumberBase<TSelf>) |
IUtf8SpanParsable<TSelf>.Parse(ReadOnlySpan<Byte>, IFormatProvider) |
Анализирует диапазон символов UTF-8 в значение. (Унаследовано от INumberBase<TSelf>) |
IUtf8SpanParsable<TSelf>.TryParse(ReadOnlySpan<Byte>, IFormatProvider, TSelf) |
Пытается проанализировать диапазон символов UTF-8 в значение. (Унаследовано от INumberBase<TSelf>) |
Применяется к
Кері байланыс
https://aka.ms/ContentUserFeedback.
Жақында қолжетімді болады: 2024 жыл бойы біз GitHub Issues жүйесін мазмұнға арналған кері байланыс механизмі ретінде біртіндеп қолданыстан шығарамыз және оны жаңа кері байланыс жүйесімен ауыстырамыз. Қосымша ақпаратты мұнда қараңыз:Жіберу және пікірді көру