nuint Struct

Definition

Native unsigned integer (32-bit in 32-bit platforms, and 64-bit on 64-bit platforms)

[System.Serializable]
public struct nuint : IComparable, IComparable<nuint>, IConvertible, IEquatable<nuint>, IFormattable
type nuint = struct
    interface IFormattable
    interface IConvertible
Inheritance
nuint
Attributes
Implements

Remarks

This data type is an unsigned integer value that uses the natural size of the host architecture to store its value.  On 32-bit systems, this uses T:System.UInt32 for storage and on 64-bit systems it uses T:System.UInt64 for storage.

As an optimization, the compiler and runtime have special knowledge of this data type, so while there is no dedicated set of IL instructions to deal with variable-size unsigned integer values, the runtime will transform uses of nuint into their native underlying representation transparently.

This type is defined in lowercase because it makes it feel like a C# data type when used in C# source code.

Constructors

nuint(UInt32)
nuint(UInt64)

Fields

MaxValue
MinValue
Size

Methods

CompareTo(nuint)
CompareTo(Object)
CopyArray(IntPtr, nuint[], Int32, Int32)
CopyArray(nuint[], Int32, IntPtr, Int32)
Equals(nuint)
Equals(Object)
GetHashCode()
GetTypeCode()
Parse(String)
Parse(String, IFormatProvider)
Parse(String, NumberStyles)
Parse(String, NumberStyles, IFormatProvider)
ToString()
ToString(IFormatProvider)
ToString(String)
ToString(String, IFormatProvider)
TryParse(String, nuint)
TryParse(String, NumberStyles, IFormatProvider, nuint)

Operators

Addition(nuint, nuint)
BitwiseAnd(nuint, nuint)
BitwiseOr(nuint, nuint)
Decrement(nuint)
Division(nuint, nuint)
Equality(nuint, nuint)
ExclusiveOr(nuint, nuint)
Explicit(Decimal to nuint)
Explicit(Double to nuint)
Explicit(Int16 to nuint)
Explicit(Int32 to nuint)
Explicit(Int64 to nuint)
Explicit(IntPtr to nuint)
Explicit(nfloat to nuint)
Explicit(nuint to Byte)
Explicit(nuint to Char)
Explicit(nuint to Int16)
Explicit(nuint to Int32)
Explicit(nuint to Int64)
Explicit(nuint to IntPtr)
Explicit(nuint to SByte)
Explicit(nuint to UInt16)
Explicit(nuint to UInt32)
Explicit(SByte to nuint)
Explicit(Single to nuint)
Explicit(UInt64 to nuint)
GreaterThan(nuint, nuint)
GreaterThanOrEqual(nuint, nuint)
Implicit(Byte to nuint)
Implicit(Char to nuint)
Implicit(nuint to Decimal)
Implicit(nuint to Double)
Implicit(nuint to nfloat)
Implicit(nuint to Single)
Implicit(nuint to UInt64)
Implicit(UInt16 to nuint)
Implicit(UInt32 to nuint)
Increment(nuint)
Inequality(nuint, nuint)
LeftShift(nuint, Int32)
LessThan(nuint, nuint)
LessThanOrEqual(nuint, nuint)
Modulus(nuint, nuint)
Multiply(nuint, nuint)
OnesComplement(nuint)
RightShift(nuint, Int32)
Subtraction(nuint, nuint)
UnaryPlus(nuint)

Explicit Interface Implementations

IConvertible.ToBoolean(IFormatProvider)
IConvertible.ToByte(IFormatProvider)
IConvertible.ToChar(IFormatProvider)
IConvertible.ToDateTime(IFormatProvider)
IConvertible.ToDecimal(IFormatProvider)
IConvertible.ToDouble(IFormatProvider)
IConvertible.ToInt16(IFormatProvider)
IConvertible.ToInt32(IFormatProvider)
IConvertible.ToInt64(IFormatProvider)
IConvertible.ToSByte(IFormatProvider)
IConvertible.ToSingle(IFormatProvider)
IConvertible.ToType(Type, IFormatProvider)
IConvertible.ToUInt16(IFormatProvider)
IConvertible.ToUInt32(IFormatProvider)
IConvertible.ToUInt64(IFormatProvider)

Applies to