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 的替代类型为 DecimalInt64 可以改用 来替换 UInt64 范围从零到 MaxValue的值。 有关 CLS 符合性的详细信息,请参阅 语言独立性和 Language-Independent 组件

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

字段

MaxValue

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

MinValue

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

方法

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()

返回值类型 TypeCodeUInt64

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)

尝试以 little-endian 格式将当前值写入给定范围。

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()

返回值类型 TypeCodeUInt64

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>.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)

计算值的一元加号。

适用于

线程安全性

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

另请参阅