Int16 Structure

Définition

Représente un entier signé 16 bits.

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
Héritage
Attributs
Implémente
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>

Remarques

Le Int16 type de valeur représente des entiers signés avec des valeurs allant de 32768 négatif à 32767 positif.

Ce type fournit des méthodes permettant de convertir la valeur d’un instance de ce type en sa représentation sous forme de chaîne, de convertir la représentation sous forme de chaîne d’un nombre en instance de ce type et de comparer des instances de ce type.

Vous pouvez également appeler les membres de la Math classe pour effectuer un large éventail d’opérations numériques, notamment l’obtention de la valeur absolue d’un nombre, le calcul du quotient et du reste à partir de la division intégrale, la détermination de la valeur maximale ou minimale de deux entiers, l’obtention du signe d’un nombre et l’arrondi d’un nombre.

Pour plus d’informations sur la façon dont les codes de spécification de format contrôlent la représentation sous forme de chaîne des types valeur, consultez Mise en forme des types.

Champs

MaxValue

Représente la plus grande valeur possible d'un Int16. Ce champ est constant.

MinValue

Représente la plus petite valeur possible de Int16. Ce champ est constant.

Méthodes

Abs(Int16)

Calcule l’absolu d’une valeur.

Clamp(Int16, Int16, Int16)

Limite une valeur à une valeur minimale et maximale inclusive.

CompareTo(Int16)

Compare cette instance à un entier signé 16 bits spécifie et retourne un entier qui indique si la valeur de cette instance est inférieure, égale ou supérieure à la valeur de l'entier signé 16 bits spécifié.

CompareTo(Object)

Compare cette instance à un objet spécifié et retourne un entier qui indique si la valeur de l'instance est inférieure, égale ou supérieure à la valeur de l'objet.

CopySign(Int16, Int16)

Copie le signe d’une valeur dans le signe d’une autre valeur.

CreateChecked<TOther>(TOther)

Crée une instance du type actuel à partir d’une valeur, lève une exception de dépassement de capacité pour toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

CreateSaturating<TOther>(TOther)

Crée une instance du type actuel à partir d’une valeur, saturant toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

CreateTruncating<TOther>(TOther)

Crée une instance du type actuel à partir d’une valeur, en tronqué toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

DivRem(Int16, Int16)

Calcule le quotient et le reste de deux valeurs.

Equals(Int16)

Retourne une valeur indiquant si cette instance est égale à une valeur Int16 spécifiée.

Equals(Object)

Retourne une valeur indiquant si cette instance équivaut à un objet spécifié.

GetHashCode()

Retourne le code de hachage de cette instance.

GetTypeCode()

Retourne le TypeCode du type valeur Int16.

IsEvenInteger(Int16)

Détermine si une valeur représente un nombre entier pair.

IsNegative(Int16)

Détermine si une valeur est négative.

IsOddInteger(Int16)

Détermine si une valeur représente un nombre entier impair.

IsPositive(Int16)

Détermine si une valeur est positive.

IsPow2(Int16)

Détermine si une valeur est une puissance de deux.

LeadingZeroCount(Int16)

Calcule le nombre de zéros non significatifs dans une valeur.

Log2(Int16)

Calcule le log2 d’une valeur.

Max(Int16, Int16)

Compare deux valeurs au calcul, ce qui est supérieur.

MaxMagnitude(Int16, Int16)

Compare deux valeurs au calcul, ce qui est supérieur.

Min(Int16, Int16)

Compare deux valeurs au calcul, ce qui est inférieur.

MinMagnitude(Int16, Int16)

Compare deux valeurs au calcul, ce qui est inférieur.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Analyse une étendue de caractères UTF-8 dans une valeur.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analyse une étendue de caractères UTF-8 dans une valeur.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Analyse une étendue de caractères dans une valeur.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Convertit la représentation sous forme de plage d'un nombre dans un style et un format propre à une culture spécifiés en entier 16 bits signé équivalent.

Parse(String)

Convertit la représentation sous forme de chaîne d'un nombre en son équivalent entier 16 bits signé.

Parse(String, IFormatProvider)

Convertit la représentation d'un nombre sous forme de chaîne dans un format propre à une culture spécifié en entier 16 bits signé équivalent.

Parse(String, NumberStyles)

Convertit une représentation d'un nombre sous forme de chaîne dans un style spécifié en entier 16 bits signé équivalent.

Parse(String, NumberStyles, IFormatProvider)

Convertit la représentation sous forme de chaîne d'un nombre dans un style et un format propre à une culture spécifiés en entier 16 bits signé équivalent.

PopCount(Int16)

Calcule le nombre de bits définis dans une valeur.

RotateLeft(Int16, Int32)

Fait pivoter une valeur à gauche d’une quantité donnée.

RotateRight(Int16, Int32)

Fait pivoter une valeur d’un montant donné.

Sign(Int16)

Calcule le signe d’une valeur.

ToString()

Convertit la valeur numérique de cette instance en sa représentation équivalente sous forme de chaîne.

ToString(IFormatProvider)

Convertit la valeur numérique de cette instance en sa représentation sous forme de chaîne équivalente à l'aide des informations de format spécifiques à la culture donnée.

ToString(String)

Convertit la valeur numérique de cette instance en sa représentation sous forme de chaîne équivalente en utilisant le format spécifié.

ToString(String, IFormatProvider)

Convertit la valeur numérique de cette instance en représentation sous forme de chaîne équivalente à l'aide du format spécifié et des informations de mise en forme spécifiques à la culture.

TrailingZeroCount(Int16)

Calcule le nombre de zéros de fin dans une valeur.

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

Tente de mettre en forme la valeur de la instance actuelle en UTF-8 dans l’étendue d’octets fournie.

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

Tente de mettre en forme la valeur de l’instance de nombre court actuelle dans la plage de caractères fournie.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Int16)

Tente d’analyser une étendue de caractères UTF-8 en une valeur.

TryParse(ReadOnlySpan<Byte>, Int16)

Tente de convertir une étendue de caractères UTF-8 contenant la représentation sous forme de chaîne d’un nombre en entier signé 16 bits équivalent.

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

Tente d’analyser une étendue de caractères UTF-8 en une valeur.

TryParse(ReadOnlySpan<Char>, IFormatProvider, Int16)

Tente d’analyser une étendue de caractères dans une valeur.

TryParse(ReadOnlySpan<Char>, Int16)

Convertit la représentation sous forme de plage d'un nombre dans un style et un format propre à une culture spécifiés en entier 16 bits signé équivalent. Une valeur de retour indique si la conversion a réussi ou a échoué.

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

Convertit la représentation sous forme de plage d'un nombre dans un style et un format propre à une culture spécifiés en entier 16 bits signé équivalent. Une valeur de retour indique si la conversion a réussi ou a échoué.

TryParse(String, IFormatProvider, Int16)

Tente d’analyser une chaîne en une valeur.

TryParse(String, Int16)

Convertit la représentation sous forme de chaîne d'un nombre en son équivalent entier 16 bits signé. Une valeur de retour indique si la conversion a réussi ou a échoué.

TryParse(String, NumberStyles, IFormatProvider, Int16)

Convertit la représentation sous forme de chaîne d'un nombre dans un style et un format propre à une culture spécifiés en entier 16 bits signé équivalent. Une valeur de retour indique si la conversion a réussi ou a échoué.

Implémentations d’interfaces explicites

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

Ajoute deux valeurs ensemble pour calculer leur somme.

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

Ajoute deux valeurs ensemble pour calculer leur somme.

IAdditiveIdentity<Int16,Int16>.AdditiveIdentity

Obtient l’identité additive du type actuel.

IBinaryInteger<Int16>.GetByteCount()

Obtient le nombre d’octets qui seront écrits dans le cadre de TryWriteLittleEndian(Span<Byte>, Int32).

IBinaryInteger<Int16>.GetShortestBitLength()

Obtient la longueur, en bits, de la représentation complémentaire des deux plus courtes de la valeur actuelle.

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

Représente un entier signé 16 bits.

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

Représente un entier signé 16 bits.

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

Tente d’écrire la valeur actuelle, au format big-endian, dans une étendue donnée.

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

Tente d’écrire la valeur actuelle, au format little-endian, dans une étendue donnée.

IBinaryNumber<Int16>.AllBitsSet

Obtient une instance du type binaire dans lequel tous les bits sont définis.

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

Calcule les valeurs au niveau du bit et de deux valeurs.

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

Calcule au niveau du bit ou de deux valeurs.

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

Calcule les valeurs exclusives ou de deux valeurs.

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

Calcule la représentation du complément des uns d’une valeur donnée.

IComparable.CompareTo(Object)

Compare cette instance à un objet spécifié et retourne un entier qui indique si la valeur de l'instance est inférieure, égale ou supérieure à la valeur de l'objet.

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

Compare deux valeurs pour déterminer la valeur la plus élevée.

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

Compare deux valeurs pour déterminer laquelle est supérieure ou égale.

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

Compare deux valeurs pour déterminer laquelle est inférieure.

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

Compare deux valeurs pour déterminer laquelle est inférieure ou égale.

IConvertible.GetTypeCode()

Retourne le TypeCode du type valeur Int16.

IConvertible.ToBoolean(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToChar(IFormatProvider).

IConvertible.ToDateTime(IFormatProvider)

Cette conversion n'est pas prise en charge. Toute tentative d'utilisation de cette méthode lève une InvalidCastException.

IConvertible.ToDecimal(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

Pour obtenir une description de ce membre, consultez ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

Pour obtenir une description de ce membre, consultez ToUInt64(IFormatProvider).

IDecrementOperators<Int16>.CheckedDecrement(Int16)

Décrémente une valeur.

IDecrementOperators<Int16>.Decrement(Int16)

Décrémente une valeur.

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

Divise une valeur par une autre pour calculer leur quotient.

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

Compare deux valeurs pour déterminer l’égalité.

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

Compare deux valeurs pour déterminer l’inégalité.

IIncrementOperators<Int16>.CheckedIncrement(Int16)

Incrémente une valeur.

IIncrementOperators<Int16>.Increment(Int16)

Incrémente une valeur.

IMinMaxValue<Int16>.MaxValue

Obtient la valeur maximale du type actuel.

IMinMaxValue<Int16>.MinValue

Obtient la valeur minimale du type actuel.

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

Divise deux valeurs ensemble pour calculer leur module ou leur reste.

IMultiplicativeIdentity<Int16,Int16>.MultiplicativeIdentity

Obtient l’identité multiplicative du type actuel.

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

Multiplie deux valeurs ensemble pour calculer leur produit.

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

Multiplie deux valeurs ensemble pour calculer leur produit.

INumber<Int16>.MaxNumber(Int16, Int16)

Compare deux valeurs au calcul, ce qui est supérieur et retourne l’autre valeur si une entrée est NaN.

INumber<Int16>.MinNumber(Int16, Int16)

Compare deux valeurs au calcul, ce qui est inférieur et retourne l’autre valeur si une entrée est NaN.

INumberBase<Int16>.IsCanonical(Int16)

Détermine si une valeur se trouve dans sa représentation canonique.

INumberBase<Int16>.IsComplexNumber(Int16)

Détermine si une valeur représente un nombre complexe.

INumberBase<Int16>.IsFinite(Int16)

Détermine si une valeur est finie.

INumberBase<Int16>.IsImaginaryNumber(Int16)

Détermine si une valeur représente un nombre imaginaire pur.

INumberBase<Int16>.IsInfinity(Int16)

Détermine si une valeur est infinie.

INumberBase<Int16>.IsInteger(Int16)

Détermine si une valeur représente un nombre intégral.

INumberBase<Int16>.IsNaN(Int16)

Détermine si une valeur est NaN.

INumberBase<Int16>.IsNegativeInfinity(Int16)

Détermine si une valeur est négative à l’infini.

INumberBase<Int16>.IsNormal(Int16)

Détermine si une valeur est normale.

INumberBase<Int16>.IsPositiveInfinity(Int16)

Détermine si une valeur est positive à l’infini.

INumberBase<Int16>.IsRealNumber(Int16)

Détermine si une valeur représente un nombre réel.

INumberBase<Int16>.IsSubnormal(Int16)

Détermine si une valeur est inférieure à la normale.

INumberBase<Int16>.IsZero(Int16)

Détermine si une valeur est égale à zéro.

INumberBase<Int16>.MaxMagnitudeNumber(Int16, Int16)

Compare deux valeurs au calcul qui a la plus grande magnitude et retourne l’autre valeur si une entrée est NaN.

INumberBase<Int16>.MinMagnitudeNumber(Int16, Int16)

Compare deux valeurs au calcul qui a la moindre magnitude et retourne l’autre valeur si une entrée est NaN.

INumberBase<Int16>.One

Obtient la valeur 1 du type .

INumberBase<Int16>.Radix

Obtient la base pour le type.

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

Représente un entier signé 16 bits.

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

Représente un entier signé 16 bits.

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

Représente un entier signé 16 bits.

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

Tente de convertir une instance du type actuel en un autre type, lève une exception de dépassement de capacité pour toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

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

Tente de convertir une instance du type actuel en un autre type, saturant toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

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

Tente de convertir un instance du type actuel en un autre type, tronqué toutes les valeurs qui se trouvent en dehors de la plage représentable du type actuel.

INumberBase<Int16>.Zero

Obtient la valeur 0 du type .

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

Déplace une valeur laissée d’un montant donné.

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

Déplace une valeur à droite d’un montant donné.

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

Déplace une valeur à droite d’un montant donné.

ISignedNumber<Int16>.NegativeOne

Obtient la valeur -1 du type .

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

Soustrait deux valeurs pour calculer leur différence.

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

Soustrait deux valeurs pour calculer leur différence.

IUnaryNegationOperators<Int16,Int16>.CheckedUnaryNegation(Int16)

Calcule la négation unaire vérifiée d’une valeur.

IUnaryNegationOperators<Int16,Int16>.UnaryNegation(Int16)

Calcule la négation unaire d’une valeur.

IUnaryPlusOperators<Int16,Int16>.UnaryPlus(Int16)

Calcule le plus unaire d’une valeur.

S’applique à

Cohérence de thread

Tous les membres de ce type sont thread safe. Les membres qui semblent modifier instance’état retournent en fait un nouveau instance initialisé avec la nouvelle valeur. Comme pour tout autre type, la lecture et l’écriture dans une variable partagée qui contient une instance de ce type doivent être protégées par un verrou pour garantir la sécurité des threads.

Voir aussi