Int16 结构

定义

表示 16 位有符号整数。

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
继承
属性
实现
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>

注解

Int16 类型表示有符号整数,其值范围为负 32768 到正 32767。

此类型提供的方法可将此类型的实例的值转换为其字符串表示形式,将数字的字符串表示形式转换为此类型的实例,以及比较此类型的实例。

还可以调用 类的成员 Math 来执行各种数值运算,包括获取数字的绝对值、计算整除的商和余数、确定两个整数的最大值或最小值、获取一个数字的符号以及舍入一个数字。

有关格式规范代码如何控制值类型的字符串表示形式的信息,请参阅 设置类型格式

字段

MaxValue

表示 Int16 的最大可能值。 此字段为常数。

MinValue

表示 Int16 的最小可能值。 此字段为常数。

方法

Abs(Int16)

计算值的绝对值。

Clamp(Int16, Int16, Int16)

将值固定为非独占最小值和最大值。

CompareTo(Int16)

将此实例与指定的 16 位有符号整数进行比较,并返回一个整数,该整数指示此实例的值是小于、等于还是大于指定的 16 位有符号整数的值。

CompareTo(Object)

将此实例与指定对象进行比较,并返回一个整数,该整数指示此实例的值是小于、等于还是大于此对象的值。

CopySign(Int16, Int16)

将值的符号复制到另一个值的符号。

CreateChecked<TOther>(TOther)

从值创建当前类型的实例,对超出当前类型的可表示范围的任何值引发溢出异常。

CreateSaturating<TOther>(TOther)

从值创建当前类型的实例,使当前类型的可表示范围之外的任何值饱和。

CreateTruncating<TOther>(TOther)

从值创建当前类型的实例,截断当前类型的可表示范围之外的任何值。

DivRem(Int16, Int16)

计算两个值的商和余数。

Equals(Int16)

返回一个值,该值指示此实例是否等于指定的 Int16 值。

Equals(Object)

返回一个值,该值指示此实例是否等于指定的对象。

GetHashCode()

返回此实例的哈希代码。

GetTypeCode()

返回值类型 TypeCodeInt16

IsEvenInteger(Int16)

确定值是否表示偶数整数。

IsNegative(Int16)

确定值是否为负值。

IsOddInteger(Int16)

确定值是否表示奇数整数。

IsPositive(Int16)

确定值是否为正值。

IsPow2(Int16)

确定值是否为 2 的幂。

LeadingZeroCount(Int16)

计算值中前导零的数目。

Log2(Int16)

计算值的 log2。

Max(Int16, Int16)

将两个值与计算进行比较,这两个值更大。

MaxMagnitude(Int16, Int16)

将两个值与计算进行比较,这两个值更大。

Min(Int16, Int16)

将两个值与较小的计算进行比较。

MinMagnitude(Int16, Int16)

将两个值与较小的计算进行比较。

Parse(ReadOnlySpan<Byte>, IFormatProvider)

将 UTF-8 字符范围分析为值。

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

将 UTF-8 字符范围分析为值。

Parse(ReadOnlySpan<Char>, IFormatProvider)

将字符范围分析为值。

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

将指定样式和区域性特定格式的数字的范围表示形式转换为它的等效 16 位带符号整数。

Parse(String)

将数字的字符串表示形式转换为它的等效 16 位有符号整数。

Parse(String, IFormatProvider)

将指定的区域性特定格式的数字的字符串表示形式转换为它的等效 16 位有符号整数。

Parse(String, NumberStyles)

将指定样式的数字的字符串表示形式转换为它的等效 16 位有符号整数。

Parse(String, NumberStyles, IFormatProvider)

将指定样式和区域性特定格式的数字的字符串表示形式转换为它的等效 16 位有符号整数。

PopCount(Int16)

计算值中设置的位数。

RotateLeft(Int16, Int32)

按给定量旋转剩余的值。

RotateRight(Int16, Int32)

将值向右旋转给定的量。

Sign(Int16)

计算值的符号。

ToString()

将此实例的数值转换为其等效的字符串表示形式。

ToString(IFormatProvider)

使用指定的区域性特定格式信息,将此实例的数值转换为它的等效字符串表示形式。

ToString(String)

使用指定的格式,将此实例的数值转换为它的等效字符串表示形式。

ToString(String, IFormatProvider)

使用指定的格式和区域性特定格式设置信息,将此实例的数值转换为其等效字符串表示形式。

TrailingZeroCount(Int16)

计算值中尾随零的数目。

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

尝试将当前实例的值格式化为 UTF-8,将其设置为提供的字节范围。

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

尝试将当前短数字实例的值的格式设置为提供的字符范围。

TryParse(ReadOnlySpan<Byte>, IFormatProvider, Int16)

尝试将 UTF-8 字符范围解析为值。

TryParse(ReadOnlySpan<Byte>, Int16)

尝试将包含数字字符串表示形式的 UTF-8 字符范围转换为其等效的 16 位带符号整数。

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

尝试将 UTF-8 字符范围解析为值。

TryParse(ReadOnlySpan<Char>, IFormatProvider, Int16)

尝试将字符范围解析为值。

TryParse(ReadOnlySpan<Char>, Int16)

将指定样式和区域性特定格式的数字的范围表示形式转换为它的等效 16 位带符号整数。 一个指示转换是否成功的返回值。

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

将指定样式和区域性特定格式的数字的范围表示形式转换为它的等效 16 位带符号整数。 一个指示转换是否成功的返回值。

TryParse(String, IFormatProvider, Int16)

尝试将字符串分析为值。

TryParse(String, Int16)

将数字的字符串表示形式转换为它的等效 16 位有符号整数。 一个指示转换是否成功的返回值。

TryParse(String, NumberStyles, IFormatProvider, Int16)

将指定样式和区域性特定格式的数字的字符串表示形式转换为它的等效 16 位有符号整数。 一个指示转换是否成功的返回值。

显式接口实现

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

将两个值相加以计算其和。

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

将两个值相加以计算其和。

IAdditiveIdentity<Int16,Int16>.AdditiveIdentity

获取当前类型的加法标识。

IBinaryInteger<Int16>.GetByteCount()

获取将作为 的一部分写入的 TryWriteLittleEndian(Span<Byte>, Int32)字节数。

IBinaryInteger<Int16>.GetShortestBitLength()

获取当前值的最短两个的补补表示形式的长度(以位为单位)。

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

表示 16 位有符号整数。

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

表示 16 位有符号整数。

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

尝试以 big-endian 格式将当前值写入给定范围。

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

尝试以 little-endian 格式将当前值写入给定范围。

IBinaryNumber<Int16>.AllBitsSet

获取设置所有位的二进制类型的实例。

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

计算两个值的按位和 。

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

计算两个值的按位或 。

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

计算两个值的独占或 。

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

计算给定值的补数表示形式。

IComparable.CompareTo(Object)

将此实例与指定对象进行比较,并返回一个整数,该整数指示此实例的值是小于、等于还是大于此对象的值。

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

比较两个值以确定哪个值更大。

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

比较两个值以确定哪个值大于或等于。

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

比较两个值以确定哪个值更少。

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

比较两个值以确定哪个值小于或等于。

IConvertible.GetTypeCode()

返回值类型 TypeCodeInt16

IConvertible.ToBoolean(IFormatProvider)

有关此成员的说明,请参见 ToBoolean(IFormatProvider)

IConvertible.ToByte(IFormatProvider)

有关此成员的说明,请参见 ToByte(IFormatProvider)

IConvertible.ToChar(IFormatProvider)

有关此成员的说明,请参见 ToChar(IFormatProvider)

IConvertible.ToDateTime(IFormatProvider)

不支持此转换。 尝试使用此方法将引发 InvalidCastException

IConvertible.ToDecimal(IFormatProvider)

有关此成员的说明,请参见 ToDecimal(IFormatProvider)

IConvertible.ToDouble(IFormatProvider)

有关此成员的说明,请参见 ToDouble(IFormatProvider)

IConvertible.ToInt16(IFormatProvider)

有关此成员的说明,请参见 ToInt16(IFormatProvider)

IConvertible.ToInt32(IFormatProvider)

有关此成员的说明,请参见 ToInt32(IFormatProvider)

IConvertible.ToInt64(IFormatProvider)

有关此成员的说明,请参见 ToInt64(IFormatProvider)

IConvertible.ToSByte(IFormatProvider)

有关此成员的说明,请参见 ToSByte(IFormatProvider)

IConvertible.ToSingle(IFormatProvider)

有关此成员的说明,请参见 ToSingle(IFormatProvider)

IConvertible.ToType(Type, IFormatProvider)

有关此成员的说明,请参见 ToType(Type, IFormatProvider)

IConvertible.ToUInt16(IFormatProvider)

有关此成员的说明,请参见 ToUInt16(IFormatProvider)

IConvertible.ToUInt32(IFormatProvider)

有关此成员的说明,请参见 ToUInt32(IFormatProvider)

IConvertible.ToUInt64(IFormatProvider)

有关此成员的说明,请参见 ToUInt64(IFormatProvider)

IDecrementOperators<Int16>.CheckedDecrement(Int16)

递减值。

IDecrementOperators<Int16>.Decrement(Int16)

递减值。

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

将一个值除以另一个值以计算其商。

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

比较两个值以确定相等性。

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

比较两个值以确定不相等性。

IIncrementOperators<Int16>.CheckedIncrement(Int16)

递增值。

IIncrementOperators<Int16>.Increment(Int16)

递增值。

IMinMaxValue<Int16>.MaxValue

获取当前类型的最大值。

IMinMaxValue<Int16>.MinValue

获取当前类型的最小值。

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

将两个值相除以计算其取模或余数。

IMultiplicativeIdentity<Int16,Int16>.MultiplicativeIdentity

获取当前类型的乘法标识。

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

将两个值相乘以计算其乘积。

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

将两个值相乘以计算其乘积。

INumber<Int16>.MaxNumber(Int16, Int16)

比较两个值以计算大于 的值,如果输入为 NaN,则返回另一个值。

INumber<Int16>.MinNumber(Int16, Int16)

比较两个值以计算较小的值,如果输入为 NaN,则返回另一个值。

INumberBase<Int16>.IsCanonical(Int16)

确定值是否在其规范表示形式中。

INumberBase<Int16>.IsComplexNumber(Int16)

确定值是否表示复数。

INumberBase<Int16>.IsFinite(Int16)

确定值是否为有限值。

INumberBase<Int16>.IsImaginaryNumber(Int16)

确定值是否表示纯虚数。

INumberBase<Int16>.IsInfinity(Int16)

确定值是否为无限。

INumberBase<Int16>.IsInteger(Int16)

确定值是否表示整数。

INumberBase<Int16>.IsNaN(Int16)

确定值是否为 NaN。

INumberBase<Int16>.IsNegativeInfinity(Int16)

确定值是否为负无穷大。

INumberBase<Int16>.IsNormal(Int16)

确定值是否为正常值。

INumberBase<Int16>.IsPositiveInfinity(Int16)

确定值是否为正无穷大。

INumberBase<Int16>.IsRealNumber(Int16)

确定值是否表示实数。

INumberBase<Int16>.IsSubnormal(Int16)

确定值是否为非正常值。

INumberBase<Int16>.IsZero(Int16)

确定值是否为零。

INumberBase<Int16>.MaxMagnitudeNumber(Int16, Int16)

比较两个值,以计算其具有更大的数量级并返回另一个值(如果输入为 NaN)。

INumberBase<Int16>.MinMagnitudeNumber(Int16, Int16)

将两个值与具有较小数量级的计算进行比较,如果输入为 NaN,则返回另一个值。

INumberBase<Int16>.One

获取类型的值 1

INumberBase<Int16>.Radix

获取类型的基数。

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

表示 16 位有符号整数。

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

表示 16 位有符号整数。

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

表示 16 位有符号整数。

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

尝试将当前类型的实例转换为另一种类型,从而对超出当前类型的可表示范围的任何值引发溢出异常。

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

尝试将当前类型的实例转换为另一种类型,使当前类型的可表示范围之外的任何值饱和。

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

尝试将当前类型的实例转换为另一种类型,截断当前类型的可表示范围之外的任何值。

INumberBase<Int16>.Zero

获取类型的值 0

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

将值左移给定量。

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

将值右移给定量。

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

将值右移给定量。

ISignedNumber<Int16>.NegativeOne

获取类型的值 -1

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

减去两个值以计算其差值。

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

减去两个值以计算其差值。

IUnaryNegationOperators<Int16,Int16>.CheckedUnaryNegation(Int16)

计算值的已检查一元求反值。

IUnaryNegationOperators<Int16,Int16>.UnaryNegation(Int16)

计算值的一元求反值。

IUnaryPlusOperators<Int16,Int16>.UnaryPlus(Int16)

计算值的一元加号。

适用于

线程安全性

此类型的所有成员都是线程安全的。 看起来修改实例状态的成员实际上返回使用新值初始化的新实例。 与任何其他类型一样,读取和写入包含此类型的实例的共享变量必须受到锁的保护,以确保线程安全。

另请参阅