Int32 Struktura

Definicja

Reprezentuje 32-bitową liczbę całkowitą ze znakiem.

public value class int : IComparable, IComparable<int>, IConvertible, IEquatable<int>, IFormattable
public value class int : IComparable, IComparable<int>, IConvertible, IEquatable<int>, ISpanFormattable
public value class int : IComparable<int>, IConvertible, IEquatable<int>, IParsable<int>, ISpanParsable<int>, System::Numerics::IAdditionOperators<int, int, int>, System::Numerics::IAdditiveIdentity<int, int>, System::Numerics::IBinaryInteger<int>, System::Numerics::IBinaryNumber<int>, System::Numerics::IBitwiseOperators<int, int, int>, System::Numerics::IComparisonOperators<int, int, bool>, System::Numerics::IDecrementOperators<int>, System::Numerics::IDivisionOperators<int, int, int>, System::Numerics::IEqualityOperators<int, int, bool>, System::Numerics::IIncrementOperators<int>, System::Numerics::IMinMaxValue<int>, System::Numerics::IModulusOperators<int, int, int>, System::Numerics::IMultiplicativeIdentity<int, int>, System::Numerics::IMultiplyOperators<int, int, int>, System::Numerics::INumber<int>, System::Numerics::INumberBase<int>, System::Numerics::IShiftOperators<int, int, int>, System::Numerics::ISignedNumber<int>, System::Numerics::ISubtractionOperators<int, int, int>, System::Numerics::IUnaryNegationOperators<int, int>, System::Numerics::IUnaryPlusOperators<int, int>
public value class int : IComparable<int>, IConvertible, IEquatable<int>, IParsable<int>, ISpanParsable<int>, IUtf8SpanParsable<int>, System::Numerics::IAdditionOperators<int, int, int>, System::Numerics::IAdditiveIdentity<int, int>, System::Numerics::IBinaryInteger<int>, System::Numerics::IBinaryNumber<int>, System::Numerics::IBitwiseOperators<int, int, int>, System::Numerics::IComparisonOperators<int, int, bool>, System::Numerics::IDecrementOperators<int>, System::Numerics::IDivisionOperators<int, int, int>, System::Numerics::IEqualityOperators<int, int, bool>, System::Numerics::IIncrementOperators<int>, System::Numerics::IMinMaxValue<int>, System::Numerics::IModulusOperators<int, int, int>, System::Numerics::IMultiplicativeIdentity<int, int>, System::Numerics::IMultiplyOperators<int, int, int>, System::Numerics::INumber<int>, System::Numerics::INumberBase<int>, System::Numerics::IShiftOperators<int, int, int>, System::Numerics::ISignedNumber<int>, System::Numerics::ISubtractionOperators<int, int, int>, System::Numerics::IUnaryNegationOperators<int, int>, System::Numerics::IUnaryPlusOperators<int, int>
public value class int : IComparable, IConvertible, IFormattable
public value class int : IComparable, IComparable<int>, IEquatable<int>, IFormattable
public struct Int32 : IComparable, IComparable<int>, IConvertible, IEquatable<int>, IFormattable
public readonly struct Int32 : IComparable, IComparable<int>, IConvertible, IEquatable<int>, IFormattable
public readonly struct Int32 : IComparable, IComparable<int>, IConvertible, IEquatable<int>, ISpanFormattable
public readonly struct Int32 : IComparable<int>, IConvertible, IEquatable<int>, IParsable<int>, ISpanParsable<int>, System.Numerics.IAdditionOperators<int,int,int>, System.Numerics.IAdditiveIdentity<int,int>, System.Numerics.IBinaryInteger<int>, System.Numerics.IBinaryNumber<int>, System.Numerics.IBitwiseOperators<int,int,int>, System.Numerics.IComparisonOperators<int,int,bool>, System.Numerics.IDecrementOperators<int>, System.Numerics.IDivisionOperators<int,int,int>, System.Numerics.IEqualityOperators<int,int,bool>, System.Numerics.IIncrementOperators<int>, System.Numerics.IMinMaxValue<int>, System.Numerics.IModulusOperators<int,int,int>, System.Numerics.IMultiplicativeIdentity<int,int>, System.Numerics.IMultiplyOperators<int,int,int>, System.Numerics.INumber<int>, System.Numerics.INumberBase<int>, System.Numerics.IShiftOperators<int,int,int>, System.Numerics.ISignedNumber<int>, System.Numerics.ISubtractionOperators<int,int,int>, System.Numerics.IUnaryNegationOperators<int,int>, System.Numerics.IUnaryPlusOperators<int,int>
public readonly struct Int32 : IComparable<int>, IConvertible, IEquatable<int>, IParsable<int>, ISpanParsable<int>, IUtf8SpanParsable<int>, System.Numerics.IAdditionOperators<int,int,int>, System.Numerics.IAdditiveIdentity<int,int>, System.Numerics.IBinaryInteger<int>, System.Numerics.IBinaryNumber<int>, System.Numerics.IBitwiseOperators<int,int,int>, System.Numerics.IComparisonOperators<int,int,bool>, System.Numerics.IDecrementOperators<int>, System.Numerics.IDivisionOperators<int,int,int>, System.Numerics.IEqualityOperators<int,int,bool>, System.Numerics.IIncrementOperators<int>, System.Numerics.IMinMaxValue<int>, System.Numerics.IModulusOperators<int,int,int>, System.Numerics.IMultiplicativeIdentity<int,int>, System.Numerics.IMultiplyOperators<int,int,int>, System.Numerics.INumber<int>, System.Numerics.INumberBase<int>, System.Numerics.IShiftOperators<int,int,int>, System.Numerics.ISignedNumber<int>, System.Numerics.ISubtractionOperators<int,int,int>, System.Numerics.IUnaryNegationOperators<int,int>, System.Numerics.IUnaryPlusOperators<int,int>
[System.Serializable]
public struct Int32 : IComparable, IConvertible, IFormattable
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Int32 : IComparable, IComparable<int>, IConvertible, IEquatable<int>, IFormattable
public struct Int32 : IComparable, IComparable<int>, IEquatable<int>, IFormattable
type int = struct
    interface IConvertible
    interface IFormattable
type int = struct
    interface IConvertible
    interface ISpanFormattable
    interface IFormattable
type int = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<int>
    interface ISpanFormattable
    interface ISpanParsable<int>
    interface IAdditionOperators<int, int, int>
    interface IAdditiveIdentity<int, int>
    interface IBinaryInteger<int>
    interface IBinaryNumber<int>
    interface IBitwiseOperators<int, int, int>
    interface IComparisonOperators<int, int, bool>
    interface IEqualityOperators<int, int, bool>
    interface IDecrementOperators<int>
    interface IDivisionOperators<int, int, int>
    interface IIncrementOperators<int>
    interface IModulusOperators<int, int, int>
    interface IMultiplicativeIdentity<int, int>
    interface IMultiplyOperators<int, int, int>
    interface INumber<int>
    interface INumberBase<int>
    interface ISubtractionOperators<int, int, int>
    interface IUnaryNegationOperators<int, int>
    interface IUnaryPlusOperators<int, int>
    interface IShiftOperators<int, int, int>
    interface IMinMaxValue<int>
    interface ISignedNumber<int>
type int = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<int>
    interface ISpanFormattable
    interface ISpanParsable<int>
    interface IAdditionOperators<int, int, int>
    interface IAdditiveIdentity<int, int>
    interface IBinaryInteger<int>
    interface IBinaryNumber<int>
    interface IBitwiseOperators<int, int, int>
    interface IComparisonOperators<int, int, bool>
    interface IEqualityOperators<int, int, bool>
    interface IDecrementOperators<int>
    interface IDivisionOperators<int, int, int>
    interface IIncrementOperators<int>
    interface IModulusOperators<int, int, int>
    interface IMultiplicativeIdentity<int, int>
    interface IMultiplyOperators<int, int, int>
    interface INumber<int>
    interface INumberBase<int>
    interface ISubtractionOperators<int, int, int>
    interface IUnaryNegationOperators<int, int>
    interface IUnaryPlusOperators<int, int>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<int>
    interface IShiftOperators<int, int, int>
    interface IMinMaxValue<int>
    interface ISignedNumber<int>
type int = struct
    interface IConvertible
    interface IFormattable
    interface IParsable<int>
    interface ISpanFormattable
    interface ISpanParsable<int>
    interface IUtf8SpanFormattable
    interface IUtf8SpanParsable<int>
    interface IAdditionOperators<int, int, int>
    interface IAdditiveIdentity<int, int>
    interface IBinaryInteger<int>
    interface IBinaryNumber<int>
    interface IBitwiseOperators<int, int, int>
    interface IComparisonOperators<int, int, bool>
    interface IEqualityOperators<int, int, bool>
    interface IDecrementOperators<int>
    interface IDivisionOperators<int, int, int>
    interface IIncrementOperators<int>
    interface IModulusOperators<int, int, int>
    interface IMultiplicativeIdentity<int, int>
    interface IMultiplyOperators<int, int, int>
    interface INumber<int>
    interface INumberBase<int>
    interface ISubtractionOperators<int, int, int>
    interface IUnaryNegationOperators<int, int>
    interface IUnaryPlusOperators<int, int>
    interface IShiftOperators<int, int, int>
    interface IMinMaxValue<int>
    interface ISignedNumber<int>
[<System.Serializable>]
type int = struct
    interface IFormattable
    interface IConvertible
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type int = struct
    interface IFormattable
    interface IConvertible
type int = struct
    interface IFormattable
Public Structure Int32
Implements IComparable, IComparable(Of Integer), IConvertible, IEquatable(Of Integer), IFormattable
Public Structure Int32
Implements IComparable, IComparable(Of Integer), IConvertible, IEquatable(Of Integer), ISpanFormattable
Public Structure Int32
Implements IAdditionOperators(Of Integer, Integer, Integer), IAdditiveIdentity(Of Integer, Integer), IBinaryInteger(Of Integer), IBinaryNumber(Of Integer), IBitwiseOperators(Of Integer, Integer, Integer), IComparable(Of Integer), IComparisonOperators(Of Integer, Integer, Boolean), IConvertible, IDecrementOperators(Of Integer), IDivisionOperators(Of Integer, Integer, Integer), IEqualityOperators(Of Integer, Integer, Boolean), IEquatable(Of Integer), IIncrementOperators(Of Integer), IMinMaxValue(Of Integer), IModulusOperators(Of Integer, Integer, Integer), IMultiplicativeIdentity(Of Integer, Integer), IMultiplyOperators(Of Integer, Integer, Integer), INumber(Of Integer), INumberBase(Of Integer), IParsable(Of Integer), IShiftOperators(Of Integer, Integer, Integer), ISignedNumber(Of Integer), ISpanParsable(Of Integer), ISubtractionOperators(Of Integer, Integer, Integer), IUnaryNegationOperators(Of Integer, Integer), IUnaryPlusOperators(Of Integer, Integer)
Public Structure Int32
Implements IAdditionOperators(Of Integer, Integer, Integer), IAdditiveIdentity(Of Integer, Integer), IBinaryInteger(Of Integer), IBinaryNumber(Of Integer), IBitwiseOperators(Of Integer, Integer, Integer), IComparable(Of Integer), IComparisonOperators(Of Integer, Integer, Boolean), IConvertible, IDecrementOperators(Of Integer), IDivisionOperators(Of Integer, Integer, Integer), IEqualityOperators(Of Integer, Integer, Boolean), IEquatable(Of Integer), IIncrementOperators(Of Integer), IMinMaxValue(Of Integer), IModulusOperators(Of Integer, Integer, Integer), IMultiplicativeIdentity(Of Integer, Integer), IMultiplyOperators(Of Integer, Integer, Integer), INumber(Of Integer), INumberBase(Of Integer), IParsable(Of Integer), IShiftOperators(Of Integer, Integer, Integer), ISignedNumber(Of Integer), ISpanParsable(Of Integer), ISubtractionOperators(Of Integer, Integer, Integer), IUnaryNegationOperators(Of Integer, Integer), IUnaryPlusOperators(Of Integer, Integer), IUtf8SpanParsable(Of Integer)
Public Structure Int32
Implements IComparable, IConvertible, IFormattable
Public Structure Int32
Implements IComparable, IComparable(Of Integer), IEquatable(Of Integer), IFormattable
Dziedziczenie
Atrybuty
Implementuje
IComparable IComparable<Int32> IConvertible IEquatable<Int32> IFormattable ISpanFormattable IComparable<TSelf> IEquatable<TSelf> IParsable<Int32> IParsable<TSelf> ISpanParsable<Int32> ISpanParsable<TSelf> IAdditionOperators<Int32,Int32,Int32> IAdditionOperators<TSelf,TSelf,TSelf> IAdditiveIdentity<Int32,Int32> IAdditiveIdentity<TSelf,TSelf> IBinaryInteger<Int32> IBinaryNumber<Int32> IBinaryNumber<TSelf> IBitwiseOperators<Int32,Int32,Int32> IBitwiseOperators<TSelf,TSelf,TSelf> IComparisonOperators<Int32,Int32,Boolean> IComparisonOperators<TSelf,TSelf,Boolean> IDecrementOperators<Int32> IDecrementOperators<TSelf> IDivisionOperators<Int32,Int32,Int32> IDivisionOperators<TSelf,TSelf,TSelf> IEqualityOperators<Int32,Int32,Boolean> IEqualityOperators<TSelf,TOther,TResult> IEqualityOperators<TSelf,TSelf,Boolean> IIncrementOperators<Int32> IIncrementOperators<TSelf> IMinMaxValue<Int32> IModulusOperators<Int32,Int32,Int32> IModulusOperators<TSelf,TSelf,TSelf> IMultiplicativeIdentity<Int32,Int32> IMultiplicativeIdentity<TSelf,TSelf> IMultiplyOperators<Int32,Int32,Int32> IMultiplyOperators<TSelf,TSelf,TSelf> INumber<Int32> INumber<TSelf> INumberBase<Int32> INumberBase<TSelf> IShiftOperators<Int32,Int32,Int32> IShiftOperators<TSelf,Int32,TSelf> ISignedNumber<Int32> ISubtractionOperators<Int32,Int32,Int32> ISubtractionOperators<TSelf,TSelf,TSelf> IUnaryNegationOperators<Int32,Int32> IUnaryNegationOperators<TSelf,TSelf> IUnaryPlusOperators<Int32,Int32> IUnaryPlusOperators<TSelf,TSelf> IUtf8SpanFormattable IUtf8SpanParsable<Int32> IUtf8SpanParsable<TSelf>

Uwagi

Aby uzyskać więcej informacji na temat tego interfejsu API, zobacz dodatkowe uwagi dotyczące interfejsu API dla int32.

Pola

MaxValue

Reprezentuje największą możliwą wartość elementu Int32. To pole jest stałe.

MinValue

Reprezentuje najmniejszą możliwą wartość .Int32 To pole jest stałe.

Metody

Abs(Int32)

Oblicza wartość bezwzględną.

Clamp(Int32, Int32, Int32)

Zaciska wartość do wartości minimalnej i maksymalnej.

CompareTo(Int32)

Porównuje to wystąpienie z 32-bitową liczbą całkowitą ze znakiem i zwraca wskazanie ich wartości względnych.

CompareTo(Object)

Porównuje to wystąpienie z określonym obiektem i zwraca wskazanie ich względnych wartości.

CopySign(Int32, Int32)

Kopiuje znak wartości do znaku innej wartości.

CreateChecked<TOther>(TOther)

Tworzy wystąpienie bieżącego typu na podstawie wartości, zgłaszając wyjątek przepełnienia dla wszystkich wartości, które wykraczają poza dopuszczalny zakres bieżącego typu.

CreateSaturating<TOther>(TOther)

Tworzy wystąpienie bieżącego typu na podstawie wartości, usytując wszystkie wartości, które wykraczają poza reprezentowany zakres bieżącego typu.

CreateTruncating<TOther>(TOther)

Tworzy wystąpienie bieżącego typu na podstawie wartości, obcinając wszystkie wartości, które znajdują się poza dopuszczalnym zakresem bieżącego typu.

DivRem(Int32, Int32)

Oblicza iloraz i pozostałą część dwóch wartości.

Equals(Int32)

Zwraca wartość wskazującą, czy to wystąpienie jest równe określonej Int32 wartości.

Equals(Object)

Zwraca wartość wskazującą, czy to wystąpienie jest równe podanemu obiektowi.

GetHashCode()

Zwraca wartość skrótu dla tego wystąpienia.

GetTypeCode()

Zwraca wartość TypeCode typu dla wartości Int32.

IsEvenInteger(Int32)

Określa, czy wartość reprezentuje liczbę całkowitą parzystą.

IsNegative(Int32)

Określa, czy wartość jest ujemna.

IsOddInteger(Int32)

Określa, czy wartość reprezentuje nieparzystą liczbę całkowitą.

IsPositive(Int32)

Określa, czy wartość jest dodatnia.

IsPow2(Int32)

Określa, czy wartość jest potęgą dwóch.

LeadingZeroCount(Int32)

Oblicza liczbę zer wiodących w wartości.

Log2(Int32)

Oblicza dziennik2 wartości.

Max(Int32, Int32)

Porównuje dwie wartości do obliczeń, które są większe.

MaxMagnitude(Int32, Int32)

Porównuje dwie wartości do obliczeń, które są większe.

Min(Int32, Int32)

Porównuje dwie wartości do obliczeń, które są mniejsze.

MinMagnitude(Int32, Int32)

Porównuje dwie wartości do obliczeń, które są mniejsze.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Analizuje zakres znaków UTF-8 w wartości.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analizuje zakres znaków UTF-8 w wartości.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Analizuje zakres znaków w wartości.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Konwertuje reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej ze znakiem.

Parse(String)

Konwertuje reprezentację ciągu liczby na 32-bitową liczbę całkowitą ze znakiem.

Parse(String, IFormatProvider)

Konwertuje reprezentację ciągu liczby w określonym formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej ze znakiem.

Parse(String, NumberStyles)

Konwertuje reprezentację ciągu liczby w określonym stylu na odpowiednik 32-bitowej liczby całkowitej ze znakiem.

Parse(String, NumberStyles, IFormatProvider)

Konwertuje reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej ze znakiem.

PopCount(Int32)

Oblicza liczbę bitów ustawionych w wartości.

RotateLeft(Int32, Int32)

Obraca wartość pozostawioną przez daną kwotę.

RotateRight(Int32, Int32)

Obraca wartość w prawo o daną kwotę.

Sign(Int32)

Oblicza znak wartości.

ToString()

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu.

ToString(IFormatProvider)

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu przy użyciu podanych danych formatowania specyficznych dla kultury.

ToString(String)

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu przy użyciu podanego formatu.

ToString(String, IFormatProvider)

Konwertuje wartość liczbową tego wystąpienia na równoważną reprezentację w postaci ciągu przy użyciu podanego formatu i informacji specyficznych dla kultury.

TrailingZeroCount(Int32)

Oblicza liczbę końcowych zer w wartości.

TryFormat(Span<Byte>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Próbuje sformatować wartość bieżącego wystąpienia jako UTF-8 w podanym zakresie bajtów.

TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider)

Próbuje sformatować wartość bieżącego wystąpienia liczby całkowitej w podanym zakresie znaków.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Int32)

Próbuje przeanalizować zakres znaków UTF-8 w wartości.

TryParse(ReadOnlySpan<Byte>, Int32)

Próbuje przekonwertować zakres znaków UTF-8 zawierający reprezentację ciągu liczby na odpowiednik 32-bitowej liczby całkowitej ze znakiem.

TryParse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider, Int32)

Próbuje przeanalizować zakres znaków UTF-8 w wartości.

TryParse(ReadOnlySpan<Char>, IFormatProvider, Int32)

Próbuje przeanalizować zakres znaków w wartości.

TryParse(ReadOnlySpan<Char>, Int32)

Konwertuje reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej ze znakiem. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, Int32)

Konwertuje reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej ze znakiem. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

TryParse(String, IFormatProvider, Int32)

Próbuje przeanalizować ciąg w wartości.

TryParse(String, Int32)

Konwertuje reprezentację ciągu liczby na 32-bitową liczbę całkowitą ze znakiem. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

TryParse(String, NumberStyles, IFormatProvider, Int32)

Konwertuje reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik 32-bitowej liczby całkowitej ze znakiem. Wartość zwracana wskazuje, czy konwersja zakończyła się pomyślnie.

Jawne implementacje interfejsu

IAdditionOperators<Int32,Int32,Int32>.Addition(Int32, Int32)

Dodaje dwie wartości w celu obliczenia ich sumy.

IAdditionOperators<Int32,Int32,Int32>.CheckedAddition(Int32, Int32)

Dodaje dwie wartości w celu obliczenia ich sumy.

IAdditiveIdentity<Int32,Int32>.AdditiveIdentity

Pobiera tożsamość addytywnego bieżącego typu.

IBinaryInteger<Int32>.GetByteCount()

Pobiera liczbę bajtów, które zostaną zapisane jako część .TryWriteLittleEndian(Span<Byte>, Int32)

IBinaryInteger<Int32>.GetShortestBitLength()

Pobiera długość (w bitach) najkrótszej reprezentacji wartości bieżącej.

IBinaryInteger<Int32>.TryReadBigEndian(ReadOnlySpan<Byte>, Boolean, Int32)

Reprezentuje 32-bitową liczbę całkowitą ze znakiem.

IBinaryInteger<Int32>.TryReadLittleEndian(ReadOnlySpan<Byte>, Boolean, Int32)

Reprezentuje 32-bitową liczbę całkowitą ze znakiem.

IBinaryInteger<Int32>.TryWriteBigEndian(Span<Byte>, Int32)

Próbuje zapisać bieżącą wartość w formacie big-endian dla danego zakresu.

IBinaryInteger<Int32>.TryWriteLittleEndian(Span<Byte>, Int32)

Próbuje zapisać bieżącą wartość w formacie little-endian do danego zakresu.

IBinaryNumber<Int32>.AllBitsSet

Pobiera wystąpienie typu binarnego, w którym są ustawione wszystkie bity.

IBitwiseOperators<Int32,Int32,Int32>.BitwiseAnd(Int32, Int32)

Oblicza bitowe i dwie wartości.

IBitwiseOperators<Int32,Int32,Int32>.BitwiseOr(Int32, Int32)

Oblicza bitowe lub dwie wartości.

IBitwiseOperators<Int32,Int32,Int32>.ExclusiveOr(Int32, Int32)

Oblicza wyłącznie lub dwie wartości.

IBitwiseOperators<Int32,Int32,Int32>.OnesComplement(Int32)

Oblicza reprezentację danej wartości jako uzupełnienie jedynek.

IComparable.CompareTo(Object)

Porównuje to wystąpienie z określonym obiektem i zwraca wskazanie ich względnych wartości.

IComparisonOperators<Int32,Int32,Boolean>.GreaterThan(Int32, Int32)

Porównuje dwie wartości, aby określić, które wartości są większe.

IComparisonOperators<Int32,Int32,Boolean>.GreaterThanOrEqual(Int32, Int32)

Porównuje dwie wartości, aby określić, które wartości są większe lub równe.

IComparisonOperators<Int32,Int32,Boolean>.LessThan(Int32, Int32)

Porównuje dwie wartości, aby określić, które wartości są mniejsze.

IComparisonOperators<Int32,Int32,Boolean>.LessThanOrEqual(Int32, Int32)

Porównuje dwie wartości, aby określić, które wartości są mniejsze lub równe.

IConvertible.GetTypeCode()

Zwraca wartość TypeCode typu dla wartości Int32.

IConvertible.ToBoolean(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToChar(IFormatProvider).

IConvertible.ToDateTime(IFormatProvider)

Ta konwersja nie jest obsługiwana. Próba użycia tej metody zgłasza błąd InvalidCastException.

IConvertible.ToDecimal(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

Aby uzyskać opis tego członka, zobacz ToUInt64(IFormatProvider).

IDecrementOperators<Int32>.CheckedDecrement(Int32)

Dekrementuje wartość.

IDecrementOperators<Int32>.Decrement(Int32)

Dekrementuje wartość.

IDivisionOperators<Int32,Int32,Int32>.Division(Int32, Int32)

Dzieli jedną wartość przez inną, aby obliczyć ich iloraz.

IEqualityOperators<Int32,Int32,Boolean>.Equality(Int32, Int32)

Porównuje dwie wartości w celu określenia równości.

IEqualityOperators<Int32,Int32,Boolean>.Inequality(Int32, Int32)

Porównuje dwie wartości w celu określenia nierówności.

IIncrementOperators<Int32>.CheckedIncrement(Int32)

Zwiększa wartość.

IIncrementOperators<Int32>.Increment(Int32)

Zwiększa wartość.

IMinMaxValue<Int32>.MaxValue

Pobiera maksymalną wartość bieżącego typu.

IMinMaxValue<Int32>.MinValue

Pobiera minimalną wartość bieżącego typu.

IModulusOperators<Int32,Int32,Int32>.Modulus(Int32, Int32)

Dzieli dwie wartości, aby obliczyć ich modulo lub resztę.

IMultiplicativeIdentity<Int32,Int32>.MultiplicativeIdentity

Pobiera tożsamość mnożenia bieżącego typu.

IMultiplyOperators<Int32,Int32,Int32>.CheckedMultiply(Int32, Int32)

Mnoży dwie wartości, aby obliczyć swój produkt.

IMultiplyOperators<Int32,Int32,Int32>.Multiply(Int32, Int32)

Mnoży dwie wartości, aby obliczyć swój produkt.

INumber<Int32>.MaxNumber(Int32, Int32)

Porównuje dwie wartości do obliczeń, które są większe i zwracają drugą wartość, jeśli dane wejściowe to NaN.

INumber<Int32>.MinNumber(Int32, Int32)

Porównuje dwie wartości do obliczeń, które są mniejsze i zwracają drugą wartość, jeśli dane wejściowe to NaN.

INumberBase<Int32>.IsCanonical(Int32)

Określa, czy wartość znajduje się w jego reprezentacji kanonicznej.

INumberBase<Int32>.IsComplexNumber(Int32)

Określa, czy wartość reprezentuje liczbę zespolonej.

INumberBase<Int32>.IsFinite(Int32)

Określa, czy wartość jest skończona.

INumberBase<Int32>.IsImaginaryNumber(Int32)

Określa, czy wartość reprezentuje czystą liczbę wyimaginowaną.

INumberBase<Int32>.IsInfinity(Int32)

Określa, czy wartość jest nieskończona.

INumberBase<Int32>.IsInteger(Int32)

Określa, czy wartość reprezentuje liczbę całkowitą.

INumberBase<Int32>.IsNaN(Int32)

Określa, czy wartość to NaN.

INumberBase<Int32>.IsNegativeInfinity(Int32)

Określa, czy wartość jest nieskończonością ujemną.

INumberBase<Int32>.IsNormal(Int32)

Określa, czy wartość jest normalna.

INumberBase<Int32>.IsPositiveInfinity(Int32)

Określa, czy wartość jest nieskończonością dodatnią.

INumberBase<Int32>.IsRealNumber(Int32)

Określa, czy wartość reprezentuje liczbę rzeczywistą.

INumberBase<Int32>.IsSubnormal(Int32)

Określa, czy wartość jest nienormalna.

INumberBase<Int32>.IsZero(Int32)

Określa, czy wartość ma wartość zero.

INumberBase<Int32>.MaxMagnitudeNumber(Int32, Int32)

Porównuje dwie wartości do obliczeń, które mają większą wielkość i zwracają drugą wartość, jeśli dane wejściowe to NaN.

INumberBase<Int32>.MinMagnitudeNumber(Int32, Int32)

Porównuje dwie wartości do obliczeń, które mają mniejszą wielkość i zwracają drugą wartość, jeśli dane wejściowe to NaN.

INumberBase<Int32>.One

Pobiera wartość 1 typu.

INumberBase<Int32>.Radix

Pobiera promień lub bazę dla typu .

INumberBase<Int32>.TryConvertFromChecked<TOther>(TOther, Int32)

Reprezentuje 32-bitową liczbę całkowitą ze znakiem.

INumberBase<Int32>.TryConvertFromSaturating<TOther>(TOther, Int32)

Reprezentuje 32-bitową liczbę całkowitą ze znakiem.

INumberBase<Int32>.TryConvertFromTruncating<TOther>(TOther, Int32)

Reprezentuje 32-bitową liczbę całkowitą ze znakiem.

INumberBase<Int32>.TryConvertToChecked<TOther>(Int32, TOther)

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, zgłaszając wyjątek przepełnienia dla wszystkich wartości, które wykraczają poza dopuszczalny zakres bieżącego typu.

INumberBase<Int32>.TryConvertToSaturating<TOther>(Int32, TOther)

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, saturując wszystkie wartości, które wykraczają poza dopuszczalny zakres bieżącego typu.

INumberBase<Int32>.TryConvertToTruncating<TOther>(Int32, TOther)

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, obcinając wszystkie wartości, które wykraczają poza dopuszczalny zakres bieżącego typu.

INumberBase<Int32>.Zero

Pobiera wartość 0 typu.

IShiftOperators<Int32,Int32,Int32>.LeftShift(Int32, Int32)

Przesuwa wartość w lewo o daną kwotę.

IShiftOperators<Int32,Int32,Int32>.RightShift(Int32, Int32)

Przesuwa wartość w prawo o daną kwotę.

IShiftOperators<Int32,Int32,Int32>.UnsignedRightShift(Int32, Int32)

Przesuwa wartość w prawo o daną kwotę.

ISignedNumber<Int32>.NegativeOne

Pobiera wartość -1 typu.

ISubtractionOperators<Int32,Int32,Int32>.CheckedSubtraction(Int32, Int32)

Odejmuje dwie wartości, aby obliczyć ich różnicę.

ISubtractionOperators<Int32,Int32,Int32>.Subtraction(Int32, Int32)

Odejmuje dwie wartości, aby obliczyć ich różnicę.

IUnaryNegationOperators<Int32,Int32>.CheckedUnaryNegation(Int32)

Oblicza sprawdzoną jednoargumentową negację wartości.

IUnaryNegationOperators<Int32,Int32>.UnaryNegation(Int32)

Oblicza jednoargumentowe negację wartości.

IUnaryPlusOperators<Int32,Int32>.UnaryPlus(Int32)

Oblicza jednoargumentowy plus wartość.

Dotyczy

Bezpieczeństwo wątkowe

Wszystkie elementy członkowskie tego typu są bezpieczne wątkowo. Elementy członkowskie, które na pierwszy rzut oka modyfikują stan wystąpienia, w rzeczywistości zwracają nowe wystąpienie zainicjowane z nową wartością. Podobnie jak w przypadku innych typów odczytywanie i zapisywanie w udostępnionej zmiennej, która zawiera wystąpienie tego typu, musi być chronione przez blokadę w celu zagwarantowania bezpieczeństwa wątków.

Zobacz też