Int16 Struktura

Definicja

Reprezentuje 16-bitową liczbę całkowitą podpisaną.

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

Uwagi

Typ Int16 wartości reprezentuje podpisane liczby całkowite z wartościami od ujemnych 32768 do dodatnich 32767.

Ten typ udostępnia metody konwertowania wartości wystąpienia tego typu na reprezentację ciągów, aby przekonwertować reprezentację ciągu liczby na wystąpienie tego typu i porównać wystąpienia tego typu.

Można również wywołać elementy członkowskie Math klasy, aby wykonać szeroki zakres operacji liczbowych, w tym uzyskać wartość bezwzględną liczby, obliczając iloraz i resztę z dzielenia całkowitego, określając maksymalną lub minimalną wartość dwóch liczb całkowitych, uzyskując znak liczby i zaokrąglając liczbę.

Aby uzyskać informacje o sposobie kontrolowania reprezentacji ciągów typów wartości, zobacz Formatting Types (Typy formatowania).

Pola

MaxValue

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

MinValue

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

Metody

Abs(Int16)

Oblicza wartość bezwzględną.

Clamp(Int16, Int16, Int16)

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

CompareTo(Int16)

Porównuje to wystąpienie z określoną 16-bitową liczbą całkowitą podpisaną i zwraca liczbę całkowitą wskazującą, czy wartość tego wystąpienia jest mniejsza niż, równa lub większa niż wartość określonej 16-bitowej liczby całkowitej ze znakiem.

CompareTo(Object)

Porównuje to wystąpienie z określonym obiektem i zwraca liczbę całkowitą wskazującą, czy wartość tego wystąpienia jest mniejsza niż, równa lub większa niż wartość obiektu.

CopySign(Int16, Int16)

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

CreateChecked<TOther>(TOther)

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

CreateSaturating<TOther>(TOther)

Tworzy wystąpienie bieżącego typu z wartości, saturując wszystkie wartości, które mieszczą się poza reprezentatywnym zakresem bieżącego typu.

CreateTruncating<TOther>(TOther)

Tworzy wystąpienie bieżącego typu z wartości, obcinając wszystkie wartości, które wykraczają poza reprezentatywny zakres bieżącego typu.

DivRem(Int16, Int16)

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

Equals(Int16)

Zwraca wartość wskazującą, czy to wystąpienie jest równe określonej Int16 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 dla typu Int16wartości .

IsEvenInteger(Int16)

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

IsNegative(Int16)

Określa, czy wartość jest ujemna.

IsOddInteger(Int16)

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

IsPositive(Int16)

Określa, czy wartość jest dodatnia.

IsPow2(Int16)

Określa, czy wartość jest mocą dwóch.

LeadingZeroCount(Int16)

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

Log2(Int16)

Oblicza dziennik2 wartości.

Max(Int16, Int16)

Porównuje dwie wartości z obliczeniami, które są większe.

MaxMagnitude(Int16, Int16)

Porównuje dwie wartości z obliczeniami, które są większe.

Min(Int16, Int16)

Porównuje dwie wartości z obliczeniami, które są mniejsze.

MinMagnitude(Int16, Int16)

Porównuje dwie wartości z obliczeniami, które są mniejsze.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

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

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

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

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 liczby całkowitej ze znakiem 16-bitowym.

Parse(String)

Konwertuje reprezentację ciągu liczby na odpowiednik 16-bitowej liczby całkowitej ze znakiem.

Parse(String, IFormatProvider)

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

Parse(String, NumberStyles)

Konwertuje reprezentację ciągu liczby w określonym stylu na odpowiednik 16-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 liczby całkowitej ze znakiem 16-bitowym.

PopCount(Int16)

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

RotateLeft(Int16, Int32)

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

RotateRight(Int16, Int32)

Obraca wartość z prawej strony według danej kwoty.

Sign(Int16)

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ę ciągu przy użyciu określonych formatów i informacji o formatowaniu specyficznym dla kultury.

TrailingZeroCount(Int16)

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 krótkiej liczby w podanym zakresie znaków.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Int16)

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

TryParse(ReadOnlySpan<Byte>, Int16)

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

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

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

TryParse(ReadOnlySpan<Char>, IFormatProvider, Int16)

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

TryParse(ReadOnlySpan<Char>, Int16)

Konwertuje reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik liczby całkowitej ze znakiem 16-bitowym. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie.

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

Konwertuje reprezentację zakresu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik liczby całkowitej ze znakiem 16-bitowym. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie.

TryParse(String, IFormatProvider, Int16)

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

TryParse(String, Int16)

Konwertuje reprezentację ciągu liczby na odpowiednik 16-bitowej liczby całkowitej ze znakiem. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie.

TryParse(String, NumberStyles, IFormatProvider, Int16)

Konwertuje reprezentację ciągu liczby w określonym stylu i formacie specyficznym dla kultury na odpowiednik liczby całkowitej ze znakiem 16-bitowym. Zwracana wartość wskazuje, czy konwersja powiodła się czy nie.

Jawne implementacje interfejsu

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

Dodaje dwie wartości w celu obliczenia ich sumy.

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

Dodaje dwie wartości w celu obliczenia ich sumy.

IAdditiveIdentity<Int16,Int16>.AdditiveIdentity

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

IBinaryInteger<Int16>.GetByteCount()

Pobiera liczbę bajtów, które zostaną zapisane w ramach TryWriteLittleEndian(Span<Byte>, Int32)elementu .

IBinaryInteger<Int16>.GetShortestBitLength()

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

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

Reprezentuje 16-bitową liczbę całkowitą podpisaną.

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

Reprezentuje 16-bitową liczbę całkowitą podpisaną.

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

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

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

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

IBinaryNumber<Int16>.AllBitsSet

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

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

Oblicza bitowe i z dwóch wartości.

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

Oblicza bitowe lub z dwóch wartości.

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

Oblicza wyłącznie lub dwie wartości.

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

Oblicza reprezentację tej wartości jako uzupełnienie.

IComparable.CompareTo(Object)

Porównuje to wystąpienie z określonym obiektem i zwraca liczbę całkowitą wskazującą, czy wartość tego wystąpienia jest mniejsza niż, równa lub większa niż wartość obiektu.

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

Porównuje dwie wartości, aby określić, która wartość jest większa.

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

Porównuje dwie wartości, aby określić, która wartość jest większa lub równa.

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

Porównuje dwie wartości, aby określić, która wartość jest mniejsza.

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

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

IConvertible.GetTypeCode()

Zwraca wartość TypeCode dla typu Int16wartości .

IConvertible.ToBoolean(IFormatProvider)

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

IConvertible.ToByte(IFormatProvider)

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

IConvertible.ToChar(IFormatProvider)

Aby uzyskać opis tego elementu członkowskiego, 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 elementu członkowskiego, zobacz ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

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

IConvertible.ToInt16(IFormatProvider)

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

IConvertible.ToInt32(IFormatProvider)

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

IConvertible.ToInt64(IFormatProvider)

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

IConvertible.ToSByte(IFormatProvider)

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

IConvertible.ToSingle(IFormatProvider)

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

IConvertible.ToType(Type, IFormatProvider)

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

IConvertible.ToUInt16(IFormatProvider)

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

IConvertible.ToUInt32(IFormatProvider)

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

IConvertible.ToUInt64(IFormatProvider)

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

IDecrementOperators<Int16>.CheckedDecrement(Int16)

Dekrementuje wartość.

IDecrementOperators<Int16>.Decrement(Int16)

Dekrementuje wartość.

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

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

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

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

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

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

IIncrementOperators<Int16>.CheckedIncrement(Int16)

Zwiększa wartość.

IIncrementOperators<Int16>.Increment(Int16)

Zwiększa wartość.

IMinMaxValue<Int16>.MaxValue

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

IMinMaxValue<Int16>.MinValue

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

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

Dzieli dwie wartości w celu obliczenia ich modulu lub reszty.

IMultiplicativeIdentity<Int16,Int16>.MultiplicativeIdentity

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

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

Mnoży dwie wartości w celu obliczenia ich produktu.

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

Mnoży dwie wartości w celu obliczenia ich produktu.

INumber<Int16>.MaxNumber(Int16, Int16)

Porównuje dwie wartości do obliczeń, która jest większa i zwraca drugą wartość, jeśli dane wejściowe to NaN.

INumber<Int16>.MinNumber(Int16, Int16)

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

INumberBase<Int16>.IsCanonical(Int16)

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

INumberBase<Int16>.IsComplexNumber(Int16)

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

INumberBase<Int16>.IsFinite(Int16)

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

INumberBase<Int16>.IsImaginaryNumber(Int16)

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

INumberBase<Int16>.IsInfinity(Int16)

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

INumberBase<Int16>.IsInteger(Int16)

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

INumberBase<Int16>.IsNaN(Int16)

Określa, czy wartość to NaN.

INumberBase<Int16>.IsNegativeInfinity(Int16)

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

INumberBase<Int16>.IsNormal(Int16)

Określa, czy wartość jest normalna.

INumberBase<Int16>.IsPositiveInfinity(Int16)

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

INumberBase<Int16>.IsRealNumber(Int16)

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

INumberBase<Int16>.IsSubnormal(Int16)

Określa, czy wartość jest podnormalna.

INumberBase<Int16>.IsZero(Int16)

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

INumberBase<Int16>.MaxMagnitudeNumber(Int16, Int16)

Porównuje dwie wartości do obliczeń o większej wielkości i zwraca inną wartość, jeśli dane wejściowe to NaN.

INumberBase<Int16>.MinMagnitudeNumber(Int16, Int16)

Porównuje dwie wartości do obliczeń o mniejszej wielkości i zwraca inną wartość, jeśli dane wejściowe to NaN.

INumberBase<Int16>.One

Pobiera wartość 1 typu.

INumberBase<Int16>.Radix

Pobiera promienie lub podstawę dla typu.

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

Reprezentuje 16-bitową liczbę całkowitą podpisaną.

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

Reprezentuje 16-bitową liczbę całkowitą podpisaną.

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

Reprezentuje 16-bitową liczbę całkowitą podpisaną.

INumberBase<Int16>.TryConvertToChecked<TOther>(Int16, 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 reprezentatywny zakres bieżącego typu.

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

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, saturując wszystkie wartości, które mieszczą się poza reprezentatywnym zakresem bieżącego typu.

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

Próbuje przekonwertować wystąpienie bieżącego typu na inny typ, obcinając wszystkie wartości, które mieszczą się poza reprezentatywnym zakresem bieżącego typu.

INumberBase<Int16>.Zero

Pobiera wartość 0 typu.

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

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

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

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

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

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

ISignedNumber<Int16>.NegativeOne

Pobiera wartość -1 typu.

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

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

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

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

IUnaryNegationOperators<Int16,Int16>.CheckedUnaryNegation(Int16)

Oblicza sprawdzoną jednoargumentową negację wartości.

IUnaryNegationOperators<Int16,Int16>.UnaryNegation(Int16)

Oblicza jednoargumentowe negację wartości.

IUnaryPlusOperators<Int16,Int16>.UnaryPlus(Int16)

Oblicza jednoargumentowy plus wartości.

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ż