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)

嘗試以大到大到大的格式,將目前的值寫入指定的範圍。

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

嘗試以位元組端格式將目前的值寫入指定的範圍。

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)

計算值的一元加號。

適用於

執行緒安全性

此類型的所有成員都是安全線程。 看似修改實例狀態的成員,實際上會傳回以新值初始化的新實例。 如同任何其他類型,讀取和寫入包含此類型實例的共用變數必須受到鎖定保護,以確保執行緒安全。

另請參閱