nuint 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
nuintnuint
Attributes
Implements

Remarks

This data type is a floating point 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 floating point values, the runtime will transform uses of nfloat 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(UInt32)
nuint(UInt64) nuint(UInt64)

Fields

MaxValue MaxValue
MinValue MinValue
Size Size

Methods

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

Operators

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

Explicit Interface Implementations

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

Applies to