UInt64 结构

定义

重要

此 API 不符合 CLS。

表示 64 位无符号整数。

public value class System::UInt64 : IComparable, IComparable<System::UInt64>, IConvertible, IEquatable<System::UInt64>, IFormattable
public value class System::UInt64 : IComparable, IComparable<System::UInt64>, IConvertible, IEquatable<System::UInt64>, ISpanFormattable
public value class System::UInt64 : IComparable<System::UInt64>, IConvertible, IEquatable<System::UInt64>, IParsable<System::UInt64>, ISpanParsable<System::UInt64>, System::Numerics::IAdditionOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IAdditiveIdentity<System::UInt64, System::UInt64>, System::Numerics::IBinaryInteger<System::UInt64>, System::Numerics::IBinaryNumber<System::UInt64>, System::Numerics::IBitwiseOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IComparisonOperators<System::UInt64, System::UInt64, bool>, System::Numerics::IDecrementOperators<System::UInt64>, System::Numerics::IDivisionOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IEqualityOperators<System::UInt64, System::UInt64, bool>, System::Numerics::IIncrementOperators<System::UInt64>, System::Numerics::IMinMaxValue<System::UInt64>, System::Numerics::IModulusOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IMultiplicativeIdentity<System::UInt64, System::UInt64>, System::Numerics::IMultiplyOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::INumber<System::UInt64>, System::Numerics::INumberBase<System::UInt64>, System::Numerics::IShiftOperators<System::UInt64, int, System::UInt64>, System::Numerics::ISubtractionOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IUnaryNegationOperators<System::UInt64, System::UInt64>, System::Numerics::IUnaryPlusOperators<System::UInt64, System::UInt64>, System::Numerics::IUnsignedNumber<System::UInt64>
public value class System::UInt64 : IComparable<System::UInt64>, IConvertible, IEquatable<System::UInt64>, IParsable<System::UInt64>, ISpanParsable<System::UInt64>, IUtf8SpanParsable<System::UInt64>, System::Numerics::IAdditionOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IAdditiveIdentity<System::UInt64, System::UInt64>, System::Numerics::IBinaryInteger<System::UInt64>, System::Numerics::IBinaryNumber<System::UInt64>, System::Numerics::IBitwiseOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IComparisonOperators<System::UInt64, System::UInt64, bool>, System::Numerics::IDecrementOperators<System::UInt64>, System::Numerics::IDivisionOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IEqualityOperators<System::UInt64, System::UInt64, bool>, System::Numerics::IIncrementOperators<System::UInt64>, System::Numerics::IMinMaxValue<System::UInt64>, System::Numerics::IModulusOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IMultiplicativeIdentity<System::UInt64, System::UInt64>, System::Numerics::IMultiplyOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::INumber<System::UInt64>, System::Numerics::INumberBase<System::UInt64>, System::Numerics::IShiftOperators<System::UInt64, int, System::UInt64>, System::Numerics::ISubtractionOperators<System::UInt64, System::UInt64, System::UInt64>, System::Numerics::IUnaryNegationOperators<System::UInt64, System::UInt64>, System::Numerics::IUnaryPlusOperators<System::UInt64, System::UInt64>, System::Numerics::IUnsignedNumber<System::UInt64>
public value class System::UInt64 : IComparable, IConvertible, IFormattable
public value class System::UInt64 : IComparable, IComparable<System::UInt64>, IEquatable<System::UInt64>, IFormattable
[System.CLSCompliant(false)]
public struct UInt64 : IComparable, IComparable<ulong>, IConvertible, IEquatable<ulong>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt64 : IComparable, IComparable<ulong>, IConvertible, IEquatable<ulong>, IFormattable
[System.CLSCompliant(false)]
public readonly struct UInt64 : IComparable, IComparable<ulong>, IConvertible, IEquatable<ulong>, ISpanFormattable
[System.CLSCompliant(false)]
public readonly struct UInt64 : IComparable<ulong>, IConvertible, IEquatable<ulong>, IParsable<ulong>, ISpanParsable<ulong>, System.Numerics.IAdditionOperators<ulong,ulong,ulong>, System.Numerics.IAdditiveIdentity<ulong,ulong>, System.Numerics.IBinaryInteger<ulong>, System.Numerics.IBinaryNumber<ulong>, System.Numerics.IBitwiseOperators<ulong,ulong,ulong>, System.Numerics.IComparisonOperators<ulong,ulong,bool>, System.Numerics.IDecrementOperators<ulong>, System.Numerics.IDivisionOperators<ulong,ulong,ulong>, System.Numerics.IEqualityOperators<ulong,ulong,bool>, System.Numerics.IIncrementOperators<ulong>, System.Numerics.IMinMaxValue<ulong>, System.Numerics.IModulusOperators<ulong,ulong,ulong>, System.Numerics.IMultiplicativeIdentity<ulong,ulong>, System.Numerics.IMultiplyOperators<ulong,ulong,ulong>, System.Numerics.INumber<ulong>, System.Numerics.INumberBase<ulong>, System.Numerics.IShiftOperators<ulong,int,ulong>, System.Numerics.ISubtractionOperators<ulong,ulong,ulong>, System.Numerics.IUnaryNegationOperators<ulong,ulong>, System.Numerics.IUnaryPlusOperators<ulong,ulong>, System.Numerics.IUnsignedNumber<ulong>
[System.CLSCompliant(false)]
public readonly struct UInt64 : IComparable<ulong>, IConvertible, IEquatable<ulong>, IParsable<ulong>, ISpanParsable<ulong>, IUtf8SpanParsable<ulong>, System.Numerics.IAdditionOperators<ulong,ulong,ulong>, System.Numerics.IAdditiveIdentity<ulong,ulong>, System.Numerics.IBinaryInteger<ulong>, System.Numerics.IBinaryNumber<ulong>, System.Numerics.IBitwiseOperators<ulong,ulong,ulong>, System.Numerics.IComparisonOperators<ulong,ulong,bool>, System.Numerics.IDecrementOperators<ulong>, System.Numerics.IDivisionOperators<ulong,ulong,ulong>, System.Numerics.IEqualityOperators<ulong,ulong,bool>, System.Numerics.IIncrementOperators<ulong>, System.Numerics.IMinMaxValue<ulong>, System.Numerics.IModulusOperators<ulong,ulong,ulong>, System.Numerics.IMultiplicativeIdentity<ulong,ulong>, System.Numerics.IMultiplyOperators<ulong,ulong,ulong>, System.Numerics.INumber<ulong>, System.Numerics.INumberBase<ulong>, System.Numerics.IShiftOperators<ulong,int,ulong>, System.Numerics.ISubtractionOperators<ulong,ulong,ulong>, System.Numerics.IUnaryNegationOperators<ulong,ulong>, System.Numerics.IUnaryPlusOperators<ulong,ulong>, System.Numerics.IUnsignedNumber<ulong>
[System.CLSCompliant(false)]
[System.Serializable]
public struct UInt64 : IComparable, IConvertible, IFormattable
[System.CLSCompliant(false)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct UInt64 : IComparable, IComparable<ulong>, IConvertible, IEquatable<ulong>, IFormattable
[System.CLSCompliant(false)]
public struct UInt64 : IComparable, IComparable<ulong>, IEquatable<ulong>, IFormattable
[<System.CLSCompliant(false)>]
type uint64 = struct
    interface IConvertible
    interface IFormattable
[<System.CLSCompliant(false)>]
type uint64 = struct
    interface IConvertible
    interface ISpanFormattable
    interface IFormattable
[<System.CLSCompliant(false)>]
type uint64 = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<uint64>
    interface ISpanFormattable
    interface ISpanParsable<uint64>
    interface IAdditionOperators<uint64, uint64, uint64>
    interface IAdditiveIdentity<uint64, uint64>
    interface IBinaryInteger<uint64>
    interface IBinaryNumber<uint64>
    interface IBitwiseOperators<uint64, uint64, uint64>
    interface IComparisonOperators<uint64, uint64, bool>
    interface IEqualityOperators<uint64, uint64, bool>
    interface IDecrementOperators<uint64>
    interface IDivisionOperators<uint64, uint64, uint64>
    interface IIncrementOperators<uint64>
    interface IModulusOperators<uint64, uint64, uint64>
    interface IMultiplicativeIdentity<uint64, uint64>
    interface IMultiplyOperators<uint64, uint64, uint64>
    interface INumber<uint64>
    interface INumberBase<uint64>
    interface ISubtractionOperators<uint64, uint64, uint64>
    interface IUnaryNegationOperators<uint64, uint64>
    interface IUnaryPlusOperators<uint64, uint64>
    interface IShiftOperators<uint64, int, uint64>
    interface IMinMaxValue<uint64>
    interface IUnsignedNumber<uint64>
[<System.CLSCompliant(false)>]
type uint64 = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<uint64>
    interface ISpanFormattable
    interface ISpanParsable<uint64>
    interface IAdditionOperators<uint64, uint64, uint64>
    interface IAdditiveIdentity<uint64, uint64>
    interface IBinaryInteger<uint64>
    interface IBinaryNumber<uint64>
    interface IBitwiseOperators<uint64, uint64, uint64>
    interface IComparisonOperators<uint64, uint64, bool>
    interface IEqualityOperators<uint64, uint64, bool>
    interface IDecrementOperators<uint64>
    interface IDivisionOperators<uint64, uint64, uint64>
    interface IIncrementOperators<uint64>
    interface IModulusOperators<uint64, uint64, uint64>
    interface IMultiplicativeIdentity<uint64, uint64>
    interface IMultiplyOperators<uint64, uint64, uint64>
    interface INumber<uint64>
    interface INumberBase<uint64>
    interface ISubtractionOperators<uint64, uint64, uint64>
    interface IUnaryNegationOperators<uint64, uint64>
    interface IUnaryPlusOperators<uint64, uint64>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<uint64>
    interface IShiftOperators<uint64, int, uint64>
    interface IMinMaxValue<uint64>
    interface IUnsignedNumber<uint64>
[<System.CLSCompliant(false)>]
type uint64 = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<uint64>
    interface ISpanFormattable
    interface ISpanParsable<uint64>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<uint64>
    interface IAdditionOperators<uint64, uint64, uint64>
    interface IAdditiveIdentity<uint64, uint64>
    interface IBinaryInteger<uint64>
    interface IBinaryNumber<uint64>
    interface IBitwiseOperators<uint64, uint64, uint64>
    interface IComparisonOperators<uint64, uint64, bool>
    interface IEqualityOperators<uint64, uint64, bool>
    interface IDecrementOperators<uint64>
    interface IDivisionOperators<uint64, uint64, uint64>
    interface IIncrementOperators<uint64>
    interface IModulusOperators<uint64, uint64, uint64>
    interface IMultiplicativeIdentity<uint64, uint64>
    interface IMultiplyOperators<uint64, uint64, uint64>
    interface INumber<uint64>
    interface INumberBase<uint64>
    interface ISubtractionOperators<uint64, uint64, uint64>
    interface IUnaryNegationOperators<uint64, uint64>
    interface IUnaryPlusOperators<uint64, uint64>
    interface IShiftOperators<uint64, int, uint64>
    interface IMinMaxValue<uint64>
    interface IUnsignedNumber<uint64>
[<System.CLSCompliant(false)>]
[<System.Serializable>]
type uint64 = struct
    interface IFormattable
    interface IConvertible
[<System.CLSCompliant(false)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type uint64 = struct
    interface IFormattable
    interface IConvertible
[<System.CLSCompliant(false)>]
type uint64 = struct
    interface IFormattable
Public Structure UInt64
Implements IComparable, IComparable(Of ULong), IConvertible, IEquatable(Of ULong), IFormattable
Public Structure UInt64
Implements IComparable, IComparable(Of ULong), IConvertible, IEquatable(Of ULong), ISpanFormattable
Public Structure UInt64
Implements IAdditionOperators(Of ULong, ULong, ULong), IAdditiveIdentity(Of ULong, ULong), IBinaryInteger(Of ULong), IBinaryNumber(Of ULong), IBitwiseOperators(Of ULong, ULong, ULong), IComparable(Of ULong), IComparisonOperators(Of ULong, ULong, Boolean), IConvertible, IDecrementOperators(Of ULong), IDivisionOperators(Of ULong, ULong, ULong), IEqualityOperators(Of ULong, ULong, Boolean), IEquatable(Of ULong), IIncrementOperators(Of ULong), IMinMaxValue(Of ULong), IModulusOperators(Of ULong, ULong, ULong), IMultiplicativeIdentity(Of ULong, ULong), IMultiplyOperators(Of ULong, ULong, ULong), INumber(Of ULong), INumberBase(Of ULong), IParsable(Of ULong), IShiftOperators(Of ULong, Integer, ULong), ISpanParsable(Of ULong), ISubtractionOperators(Of ULong, ULong, ULong), IUnaryNegationOperators(Of ULong, ULong), IUnaryPlusOperators(Of ULong, ULong), IUnsignedNumber(Of ULong)
Public Structure UInt64
Implements IAdditionOperators(Of ULong, ULong, ULong), IAdditiveIdentity(Of ULong, ULong), IBinaryInteger(Of ULong), IBinaryNumber(Of ULong), IBitwiseOperators(Of ULong, ULong, ULong), IComparable(Of ULong), IComparisonOperators(Of ULong, ULong, Boolean), IConvertible, IDecrementOperators(Of ULong), IDivisionOperators(Of ULong, ULong, ULong), IEqualityOperators(Of ULong, ULong, Boolean), IEquatable(Of ULong), IIncrementOperators(Of ULong), IMinMaxValue(Of ULong), IModulusOperators(Of ULong, ULong, ULong), IMultiplicativeIdentity(Of ULong, ULong), IMultiplyOperators(Of ULong, ULong, ULong), INumber(Of ULong), INumberBase(Of ULong), IParsable(Of ULong), IShiftOperators(Of ULong, Integer, ULong), ISpanParsable(Of ULong), ISubtractionOperators(Of ULong, ULong, ULong), IUnaryNegationOperators(Of ULong, ULong), IUnaryPlusOperators(Of ULong, ULong), IUnsignedNumber(Of ULong), IUtf8SpanParsable(Of ULong)
Public Structure UInt64
Implements IComparable, IConvertible, IFormattable
Public Structure UInt64
Implements IComparable, IComparable(Of ULong), IEquatable(Of ULong), IFormattable
继承
UInt64
属性
实现
IComparable IComparable<UInt64> IConvertible IEquatable<UInt64> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<UInt64> IParsable<TSelf> ISpanParsable<UInt64> ISpanParsable<TSelf> IAdditionOperators<UInt64,UInt64,UInt64> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<UInt64,UInt64> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<UInt64> IBinaryNumber<UInt64> IBinaryNumber<TSelf> IBitwiseOperators<UInt64,UInt64,UInt64> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<UInt64,UInt64,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<UInt64> IDecrementOperators<TSelf> IDivisionOperators<UInt64,UInt64,UInt64> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<UInt64,UInt64,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<UInt64> IIncrementOperators<TSelf> IMinMaxValue<UInt64> IModulusOperators<UInt64,UInt64,UInt64> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<UInt64,UInt64> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<UInt64,UInt64,UInt64> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<UInt64> INumber<TSelf> INumberBase<UInt64> INumberBase<TSelf> IShiftOperators<UInt64,Int32,UInt64> IShiftOperators<TSelf,Int32,TSelf> ISubtractionOperators<UInt64,UInt64,UInt64> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<UInt64,UInt64> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<UInt64,UInt64> IUnaryPlusOperators<TSelf,TSelf> IUnsignedNumber<UInt64> IUtf8SpanFormattable IUtf8SpanParsable<UInt64> IUtf8SpanParsable<TSelf>

注解

UInt64 值类型表示无符号整数,其值范围为 0 到 18,446,744,073,709,551,615。

重要

UInt64 类型不符合 CLS。 符合 CLS 的替代类型 Decimal。 可以改用 Int64 替换范围从零到 MaxValueUInt64 值。 有关 CLS 符合性的详细信息,请参阅 语言独立性和 Language-Independent 组件

UInt64 提供用于比较此类型的实例的方法,将实例的值转换为其字符串表示形式,并将数字的字符串表示形式转换为此类型的实例。

字段

MaxValue

表示 UInt64的最大可能值。 此字段为常量。

MinValue

表示 UInt64的最小可能值。 此字段为常量。

方法

BigMul(UInt64, UInt64)

生成两个无符号 64 位数字的完整积。

Clamp(UInt64, UInt64, UInt64)

将值固定到非独占最小值和最大值。

CompareTo(Object)

将此实例与指定的对象进行比较,并返回其相对值的指示。

CompareTo(UInt64)

将此实例与指定的 64 位无符号整数进行比较,并返回其相对值的指示。

CreateChecked<TOther>(TOther)

从值创建当前类型的实例,为超出当前类型的可表示范围的任何值引发溢出异常。

CreateSaturating<TOther>(TOther)

从值创建当前类型的实例,使属于当前类型的可表示范围之外的任何值饱和。

CreateTruncating<TOther>(TOther)

从值创建当前类型的实例,截断属于当前类型的可表示范围之外的任何值。

DivRem(UInt64, UInt64)

计算两个值的商和余数。

Equals(Object)

返回一个值,该值指示此实例是否等于指定的对象。

Equals(UInt64)

返回一个值,该值指示此实例是否等于指定的 UInt64 值。

GetHashCode()

返回此实例的哈希代码。

GetTypeCode()

返回值类型 UInt64TypeCode

IsEvenInteger(UInt64)

确定值是否表示偶数。

IsOddInteger(UInt64)

确定值是否表示奇数整数。

IsPow2(UInt64)

确定值是否为 2 的幂。

LeadingZeroCount(UInt64)

计算值中的前导零数。

Log2(UInt64)

计算值的 log2。

Max(UInt64, UInt64)

比较两个值与计算值更大。

Min(UInt64, UInt64)

比较两个值与计算值较小。

Parse(ReadOnlySpan<Byte>, IFormatProvider)

将 UTF-8 字符的范围分析为值。

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

将 UTF-8 字符的范围分析为值。

Parse(ReadOnlySpan<Char>, IFormatProvider)

将字符的范围分析为值。

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

将指定样式和区域性特定格式的数字的跨度表示形式转换为其等效的 64 位无符号整数。

Parse(String)

将数字的字符串表示形式转换为其等效的 64 位无符号整数。

Parse(String, IFormatProvider)

将指定区域性特定格式的数字的字符串表示形式转换为其等效的 64 位无符号整数。

Parse(String, NumberStyles)

将指定样式中的数字的字符串表示形式转换为其等效的 64 位无符号整数。

Parse(String, NumberStyles, IFormatProvider)

将指定样式和区域性特定格式的数字的字符串表示形式转换为其等效的 64 位无符号整数。

PopCount(UInt64)

计算值中设置的位数。

RotateLeft(UInt64, Int32)

按给定量旋转一个值。

RotateRight(UInt64, Int32)

按给定的量向右旋转值。

Sign(UInt64)

计算值的符号。

ToString()

将此实例的数值转换为其等效的字符串表示形式。

ToString(IFormatProvider)

使用指定的区域性特定格式信息将此实例的数值转换为其等效的字符串表示形式。

ToString(String)

使用指定的格式将此实例的数值转换为其等效的字符串表示形式。

ToString(String, IFormatProvider)

使用指定的格式和区域性特定的格式信息将此实例的数值转换为其等效的字符串表示形式。

TrailingZeroCount(UInt64)

计算值中的尾随零数。

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前实例的值格式化为 UTF-8,并将其设置为提供的字节范围。

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

尝试将当前无符号长数实例的值格式化为提供的字符范围。

TryParse(ReadOnlySpan<Byte>, IFormatProvider, UInt64)

尝试将 UTF-8 字符的范围分析为值。

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, UInt64)

尝试将 UTF-8 字符的范围分析为值。

TryParse(ReadOnlySpan<Byte>, UInt64)

尝试将包含数字字符串表示形式的 UTF-8 字符范围转换为其等效的 64 位无符号整数。

TryParse(ReadOnlySpan<Char>, IFormatProvider, UInt64)

尝试将字符范围分析为值。

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, UInt64)

尝试将指定样式和区域性特定格式的数字的跨度表示形式转换为其等效的 64 位无符号整数。 返回值指示转换是成功还是失败。

TryParse(ReadOnlySpan<Char>, UInt64)

尝试将数字的跨度表示形式转换为其等效的 64 位无符号整数。 返回值指示转换是成功还是失败。

TryParse(String, IFormatProvider, UInt64)

尝试将字符串分析为值。

TryParse(String, NumberStyles, IFormatProvider, UInt64)

尝试将指定样式和区域性特定格式的数字的字符串表示形式转换为其等效的 64 位无符号整数。 返回值指示转换是成功还是失败。

TryParse(String, UInt64)

尝试将数字的字符串表示形式转换为其等效的 64 位无符号整数。 返回值指示转换是成功还是失败。

显式接口实现

IAdditionOperators<UInt64,UInt64,UInt64>.Addition(UInt64, UInt64)

将两个值相加以计算其总和。

IAdditionOperators<UInt64,UInt64,UInt64>.CheckedAddition(UInt64, UInt64)

将两个值相加以计算其总和。

IAdditiveIdentity<UInt64,UInt64>.AdditiveIdentity

获取当前类型的累加标识。

IBinaryInteger<UInt64>.GetByteCount()

获取将作为 TryWriteLittleEndian(Span<Byte>, Int32)一部分写入的字节数。

IBinaryInteger<UInt64>.GetShortestBitLength()

获取最短的两个当前值的补数表示形式的长度(以位为单位)。

IBinaryInteger<UInt64>.TryReadBigEndian(ReadOnlySpan<Byte>, Boolean, UInt64)

表示 64 位无符号整数。

IBinaryInteger<UInt64>.TryReadLittleEndian(ReadOnlySpan<Byte>, Boolean, UInt64)

表示 64 位无符号整数。

IBinaryInteger<UInt64>.TryWriteBigEndian(Span<Byte>, Int32)

尝试将当前值(采用 big-endian 格式)写入给定范围。

IBinaryInteger<UInt64>.TryWriteLittleEndian(Span<Byte>, Int32)

尝试将当前值(以小端格式)写入给定范围。

IBinaryNumber<UInt64>.AllBitsSet

获取在其中设置所有位的二进制类型的实例。

IBitwiseOperators<UInt64,UInt64,UInt64>.BitwiseAnd(UInt64, UInt64)

计算两个值的按位和两个值。

IBitwiseOperators<UInt64,UInt64,UInt64>.BitwiseOr(UInt64, UInt64)

计算两个值的按位或两个值。

IBitwiseOperators<UInt64,UInt64,UInt64>.ExclusiveOr(UInt64, UInt64)

计算独占值或两个值。

IBitwiseOperators<UInt64,UInt64,UInt64>.OnesComplement(UInt64)

计算给定值的补补表示形式。

IComparable.CompareTo(Object)

将此实例与指定的对象进行比较,并返回其相对值的指示。

IComparisonOperators<UInt64,UInt64,Boolean>.GreaterThan(UInt64, UInt64)

比较两个值以确定哪个值更大。

IComparisonOperators<UInt64,UInt64,Boolean>.GreaterThanOrEqual(UInt64, UInt64)

比较两个值以确定哪个值更大或相等。

IComparisonOperators<UInt64,UInt64,Boolean>.LessThan(UInt64, UInt64)

比较两个值以确定哪个值更少。

IComparisonOperators<UInt64,UInt64,Boolean>.LessThanOrEqual(UInt64, UInt64)

比较两个值以确定哪个值小于或等于。

IConvertible.GetTypeCode()

返回值类型 UInt64TypeCode

IConvertible.ToBoolean(IFormatProvider)

有关此成员的说明,请参阅 ToBoolean(IFormatProvider)

IConvertible.ToByte(IFormatProvider)

有关此成员的说明,请参阅 ToByte(IFormatProvider)

IConvertible.ToChar(IFormatProvider)

有关此成员的说明,请参阅 ToChar(IFormatProvider)

IConvertible.ToDateTime(IFormatProvider)

不支持此转换。 尝试使用此方法将引发 InvalidCastException

IConvertible.ToDecimal(IFormatProvider)

有关此成员的说明,请参阅 ToDecimal(IFormatProvider)

IConvertible.ToDouble(IFormatProvider)

有关此成员的说明,请参阅 ToDouble(IFormatProvider)

IConvertible.ToInt16(IFormatProvider)

有关此成员的说明,请参阅 ToInt16(IFormatProvider)

IConvertible.ToInt32(IFormatProvider)

有关此成员的说明,请参阅 ToInt32(IFormatProvider)

IConvertible.ToInt64(IFormatProvider)

有关此成员的说明,请参阅 ToInt64(IFormatProvider)

IConvertible.ToSByte(IFormatProvider)

有关此成员的说明,请参阅 ToSByte(IFormatProvider)

IConvertible.ToSingle(IFormatProvider)

有关此成员的说明,请参阅 ToSingle(IFormatProvider)

IConvertible.ToType(Type, IFormatProvider)

有关此成员的说明,请参阅 ToType(Type, IFormatProvider)

IConvertible.ToUInt16(IFormatProvider)

有关此成员的说明,请参阅 ToUInt16(IFormatProvider)

IConvertible.ToUInt32(IFormatProvider)

有关此成员的说明,请参阅 ToUInt32(IFormatProvider)

IConvertible.ToUInt64(IFormatProvider)

有关此成员的说明,请参阅 ToUInt64(IFormatProvider)

IDecrementOperators<UInt64>.CheckedDecrement(UInt64)

递减值。

IDecrementOperators<UInt64>.Decrement(UInt64)

递减值。

IDivisionOperators<UInt64,UInt64,UInt64>.Division(UInt64, UInt64)

将一个值除以计算其商。

IEqualityOperators<UInt64,UInt64,Boolean>.Equality(UInt64, UInt64)

比较两个值以确定相等性。

IEqualityOperators<UInt64,UInt64,Boolean>.Inequality(UInt64, UInt64)

比较两个值以确定不相等性。

IIncrementOperators<UInt64>.CheckedIncrement(UInt64)

递增值。

IIncrementOperators<UInt64>.Increment(UInt64)

递增值。

IMinMaxValue<UInt64>.MaxValue

获取当前类型的最大值。

IMinMaxValue<UInt64>.MinValue

获取当前类型的最小值。

IModulusOperators<UInt64,UInt64,UInt64>.Modulus(UInt64, UInt64)

将两个值相除以计算其模数或余数。

IMultiplicativeIdentity<UInt64,UInt64>.MultiplicativeIdentity

获取当前类型的乘法标识。

IMultiplyOperators<UInt64,UInt64,UInt64>.CheckedMultiply(UInt64, UInt64)

将两个值相乘以计算其产品。

IMultiplyOperators<UInt64,UInt64,UInt64>.Multiply(UInt64, UInt64)

将两个值相乘以计算其产品。

INumber<UInt64>.CopySign(UInt64, UInt64)

将值的符号复制到另一个值的符号。

INumber<UInt64>.MaxNumber(UInt64, UInt64)

将两个值与计算进行比较,如果输入 NaN,则返回另一个值。

INumber<UInt64>.MinNumber(UInt64, UInt64)

将两个值与计算进行比较,如果输入 NaN,则返回另一个值。

INumberBase<UInt64>.Abs(UInt64)

计算值的绝对值。

INumberBase<UInt64>.IsCanonical(UInt64)

确定某个值是否在其规范表示形式中。

INumberBase<UInt64>.IsComplexNumber(UInt64)

确定值是否表示复数。

INumberBase<UInt64>.IsFinite(UInt64)

确定值是否有限。

INumberBase<UInt64>.IsImaginaryNumber(UInt64)

确定值是否表示纯虚数。

INumberBase<UInt64>.IsInfinity(UInt64)

确定值是否无限。

INumberBase<UInt64>.IsInteger(UInt64)

确定值是否表示整数。

INumberBase<UInt64>.IsNaN(UInt64)

确定值是否为 NaN。

INumberBase<UInt64>.IsNegative(UInt64)

确定值是否为负值。

INumberBase<UInt64>.IsNegativeInfinity(UInt64)

确定值是否为负无穷大。

INumberBase<UInt64>.IsNormal(UInt64)

确定值是否正常。

INumberBase<UInt64>.IsPositive(UInt64)

确定值是否为正值。

INumberBase<UInt64>.IsPositiveInfinity(UInt64)

确定值是否为正无穷大。

INumberBase<UInt64>.IsRealNumber(UInt64)

确定值是否表示实数。

INumberBase<UInt64>.IsSubnormal(UInt64)

确定某个值是否为非正常值。

INumberBase<UInt64>.IsZero(UInt64)

确定值是否为零。

INumberBase<UInt64>.MaxMagnitude(UInt64, UInt64)

比较两个值与计算值更大。

INumberBase<UInt64>.MaxMagnitudeNumber(UInt64, UInt64)

比较两个值与计算值,如果输入 NaN,则返回另一个值。

INumberBase<UInt64>.MinMagnitude(UInt64, UInt64)

比较两个值与计算值较小。

INumberBase<UInt64>.MinMagnitudeNumber(UInt64, UInt64)

将两个值与计算进行比较,如果输入 NaN,则返回另一个值。

INumberBase<UInt64>.MultiplyAddEstimate(UInt64, UInt64, UInt64)

计算 (left * right) + addend的估计值。

INumberBase<UInt64>.One

获取类型 1 的值。

INumberBase<UInt64>.Radix

获取类型的基数或基数。

INumberBase<UInt64>.TryConvertFromChecked<TOther>(TOther, UInt64)

表示 64 位无符号整数。

INumberBase<UInt64>.TryConvertFromSaturating<TOther>(TOther, UInt64)

表示 64 位无符号整数。

INumberBase<UInt64>.TryConvertFromTruncating<TOther>(TOther, UInt64)

表示 64 位无符号整数。

INumberBase<UInt64>.TryConvertToChecked<TOther>(UInt64, TOther)

尝试将当前类型的实例转换为另一种类型,为超出当前类型可表示范围的任何值引发溢出异常。

INumberBase<UInt64>.TryConvertToSaturating<TOther>(UInt64, TOther)

尝试将当前类型的实例转换为另一种类型,使超出当前类型的可表示范围的任何值饱和。

INumberBase<UInt64>.TryConvertToTruncating<TOther>(UInt64, TOther)

尝试将当前类型的实例转换为另一种类型,截断属于当前类型的可表示范围之外的任何值。

INumberBase<UInt64>.Zero

获取类型 0 的值。

IShiftOperators<UInt64,Int32,UInt64>.LeftShift(UInt64, Int32)

将一个值左移一个给定的量。

IShiftOperators<UInt64,Int32,UInt64>.RightShift(UInt64, Int32)

将值右移一个给定的量。

IShiftOperators<UInt64,Int32,UInt64>.UnsignedRightShift(UInt64, Int32)

将值右移一个给定的量。

ISubtractionOperators<UInt64,UInt64,UInt64>.CheckedSubtraction(UInt64, UInt64)

减去两个值以计算其差异。

ISubtractionOperators<UInt64,UInt64,UInt64>.Subtraction(UInt64, UInt64)

减去两个值以计算其差异。

IUnaryNegationOperators<UInt64,UInt64>.CheckedUnaryNegation(UInt64)

计算值选中的一元求反。

IUnaryNegationOperators<UInt64,UInt64>.UnaryNegation(UInt64)

计算值的一元求反。

IUnaryPlusOperators<UInt64,UInt64>.UnaryPlus(UInt64)

计算一元加值。

适用于

线程安全性

此类型的所有成员都是线程安全的。 似乎修改实例状态的成员实际上返回使用新值初始化的新实例。 与任何其他类型一样,读取和写入包含此类型的实例的共享变量必须受到锁的保护,以确保线程安全。

另请参阅