nint Struktur

Definition

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

[System.Serializable]
public struct nint : IComparable, IComparable<nint>, IConvertible, IEquatable<nint>, IFormattable
type nint = struct
    interface IFormattable
    interface IConvertible
Vererbung
nint
Attribute
Implementiert

Hinweise

Dieser Datentyp ist ein ganzzahliger Wert, der die natürliche Größe der Hostarchitektur verwendet, um seinen Wert zu speichern.  Auf 32-Bit-Systemen verwendet dies T:System.Int32 als Speicher und auf 64-Bit-Systemen T:System.Int64 als Speicher.

Als Optimierung verfügen der Compiler und die Runtime über besondere Kenntnisse dieses Datentyps. Es gibt also keinen dedizierten Satz von IL-Anweisungen, um ganzzahlige Werte mit variabler Größe zu behandeln, die Runtime transformiert die Verwendung von nint transparent in ihre native zugrunde liegende Darstellung.

Dieser Typ wird in Kleinbuchstaben definiert, da er sich wie ein C#-Datentyp anfühlt, wenn er im C#-Quellcode verwendet wird.

Konstruktoren

nint(Int32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

nint(Int64)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Felder

MaxValue

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

MinValue

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Size

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Methoden

CompareTo(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

CompareTo(Object)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

CopyArray(IntPtr, nint[], Int32, Int32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

CopyArray(nint[], Int32, IntPtr, Int32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Equals(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Equals(Object)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

GetHashCode()

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

GetTypeCode()

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Parse(String, IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Parse(String, NumberStyles, IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Parse(String, NumberStyles)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Parse(String)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

ToString()

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

ToString(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

ToString(String, IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

ToString(String)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

TryParse(String, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

TryParse(String, NumberStyles, IFormatProvider, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Operatoren

Addition(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

BitwiseAnd(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

BitwiseOr(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Decrement(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Division(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Equality(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

ExclusiveOr(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(Decimal to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(Double to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(Int64 to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(IntPtr to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nfloat to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to Byte)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to Char)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to Int16)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to Int32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to IntPtr)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to nuint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to SByte)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to UInt16)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to UInt32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nint to UInt64)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(nuint to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(Single to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(UInt16 to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(UInt32 to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explicit(UInt64 to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

GreaterThan(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

GreaterThanOrEqual(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(Byte to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(Char to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(Int16 to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(Int32 to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(nint to Decimal)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(nint to Double)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(nint to Int64)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(nint to nfloat)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(nint to Single)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Implicit(SByte to nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Increment(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Inequality(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

LeftShift(nint, Int32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

LessThan(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

LessThanOrEqual(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Modulus(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Multiply(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

OnesComplement(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

RightShift(nint, Int32)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Subtraction(nint, nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

UnaryNegation(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

UnaryPlus(nint)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Explizite Schnittstellenimplementierungen

IConvertible.ToBoolean(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToByte(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToChar(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToDateTime(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToDecimal(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToDouble(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToInt16(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToInt32(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToInt64(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToSByte(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToSingle(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToType(Type, IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToUInt16(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToUInt32(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

IConvertible.ToUInt64(IFormatProvider)

Native ganzzahlige Vorzeichen (32-Bit auf 32-Bit-Plattformen und 64-Bit auf 64-Bit-Plattformen)

Gilt für: