iOS Guides | Samples

System.nint Structure

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

See Also: nint

Syntax

[System.Diagnostics.DebuggerDisplay("{v,nq}")]
public struct nint : IComparable, IComparable<nint>, IConvertible, IEquatable<nint>, IFormattable

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 Int32 for storage and on 64-bit systems it uses Int64 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.

Requirements

Namespace: System
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of System.nint are listed below.

See Also: ValueType

Public Constructors

Public Fields

static readonly
MaxValuenint.
static readonly
MinValuenint.
static readonly
SizeInt32.

Public Methods

Public Operators

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

Explicitly Implemented Interface Members