nuint Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |