共用方式為


SByte 結構

定義

重要

此 API 不符合 CLS 規範。

符合 CLS 規範替代方案
System.Int16

表示8位帶正負號的整數。

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

備註

SByte 實值類型代表整數,其值範圍從負 128 到正 127。

重要

SByte 類型不符合 CLS 標準。 符合 CLS 規範的替代類型 Int16。 您可以改用 Byte 來取代介於零到 MaxValue的正 SByte 值。 如需 CLS 合規性的詳細資訊,請參閱 Language Independence 和 Language-Independent Components

SByte 提供方法來比較此類型的實例、將實例的值轉換為其字串表示,以及將數位的字串表示轉換為此類型的實例。

如需格式規格代碼如何控制實值型別字串表示的詳細資訊,請參閱 格式化類型

欄位

MaxValue

表示 SByte的最大可能值。 此欄位是常數。

MinValue

表示 SByte的最小可能值。 此欄位是常數。

方法

Abs(SByte)

計算值的絕對值。

Clamp(SByte, SByte, SByte)

將值夾在內含最小值和最大值。

CompareTo(Object)

比較這個實例與指定的物件,並傳回其相對值的指示。

CompareTo(SByte)

比較這個實例與指定的8位帶正負號整數,並傳回其相對值的指示。

CopySign(SByte, SByte)

將值的正負號複製到另一個值的正負號。

CreateChecked<TOther>(TOther)

從值建立目前型別的實例,針對落在目前類型可表示範圍以外的任何值擲回溢位例外狀況。

CreateSaturating<TOther>(TOther)

從值建立目前型別的實例,使落在目前類型可表示範圍以外的任何值飽和。

CreateTruncating<TOther>(TOther)

從值建立目前型別的實例,截斷任何落在目前類型可表示範圍以外的值。

DivRem(SByte, SByte)

計算兩個值的商數和餘數。

Equals(Object)

傳回值,指出這個實例是否等於指定的物件。

Equals(SByte)

傳回值,指出這個實例是否等於指定的 SByte 值。

GetHashCode()

傳回這個實例的哈希碼。

GetTypeCode()

傳回實值型別 SByteTypeCode

IsEvenInteger(SByte)

判斷值是否代表偶數整數。

IsNegative(SByte)

判斷值是否為負值。

IsOddInteger(SByte)

判斷值是否代表奇數整數。

IsPositive(SByte)

判斷值是否為正數。

IsPow2(SByte)

判斷值是否為兩個乘冪。

LeadingZeroCount(SByte)

計算值中的前置零數目。

Log2(SByte)

計算 值的log2。

Max(SByte, SByte)

比較兩個值與計算,這兩個值更大。

MaxMagnitude(SByte, SByte)

比較兩個值與計算,這兩個值更大。

Min(SByte, SByte)

比較兩個值與計算比較較少。

MinMagnitude(SByte, SByte)

比較兩個值與計算比較較少。

Parse(ReadOnlySpan<Byte>, IFormatProvider)

將UTF-8字元的範圍剖析為值。

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

將UTF-8字元的範圍剖析為值。

Parse(ReadOnlySpan<Char>, IFormatProvider)

將字元範圍剖析為值。

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

將指定樣式和特定文化特性格式的數位範圍表示轉換為其8位帶正負號的數位。

Parse(String)

將數位的字串表示轉換為其相等的8位帶正負號的整數。

Parse(String, IFormatProvider)

將指定之特定文化特性格式之數位的字串表示轉換為其相等的8位帶正負號的整數。

Parse(String, NumberStyles)

將指定樣式中數位的字串表示轉換為其8位帶正負號的整數對等專案。

Parse(String, NumberStyles, IFormatProvider)

將指定樣式和特定文化特性格式之數位的字串表示轉換為其8位帶正負號的對等專案。

PopCount(SByte)

計算值中所設定的位數。

RotateLeft(SByte, Int32)

以指定的數量旋轉值。

RotateRight(SByte, Int32)

以指定的數量向右旋轉值。

Sign(SByte)

計算值的符號。

ToString()

將這個實例的數值轉換為其相等的字串表示。

ToString(IFormatProvider)

使用指定的特定文化特性格式資訊,將這個實例的數值轉換為其相等的字串表示。

ToString(String)

使用指定的格式,將這個實例的數值轉換為其相等的字串表示。

ToString(String, IFormatProvider)

使用指定的格式和文化特性特定格式資訊,將這個實例的數值轉換為其相等的字串表示。

TrailingZeroCount(SByte)

計算值中尾端零的數目。

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

嘗試將目前實例的值格式化為UTF-8到提供的位元組範圍。

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

嘗試將目前8位帶正負號整數實例的值格式化為提供的字元範圍。

TryParse(ReadOnlySpan<Byte>, IFormatProvider, SByte)

嘗試將UTF-8字元的範圍剖析為值。

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

嘗試將UTF-8字元的範圍剖析為值。

TryParse(ReadOnlySpan<Byte>, SByte)

嘗試將包含數位字串表示的UTF-8字元範圍轉換為其8位帶正負號的整數對等。

TryParse(ReadOnlySpan<Char>, IFormatProvider, SByte)

嘗試將字元範圍剖析成值。

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

嘗試將指定樣式與特定文化特性格式的數位範圍表示轉換成其 SByte 對等,並傳回值,指出轉換是否成功。

TryParse(ReadOnlySpan<Char>, SByte)

嘗試將數字的範圍表示轉換成其相等的 SByte,並傳回值,指出轉換是否成功。

TryParse(String, IFormatProvider, SByte)

嘗試將字串剖析成值。

TryParse(String, NumberStyles, IFormatProvider, SByte)

嘗試將指定樣式和特定文化特性格式之數位的字串表示轉換成其相等的 SByte,並傳回值,指出轉換是否成功。

TryParse(String, SByte)

嘗試將數位的字串表示轉換成其相等的 SByte,並傳回值,指出轉換是否成功。

明確介面實作

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

將兩個值加在一起以計算其總和。

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

將兩個值加在一起以計算其總和。

IAdditiveIdentity<SByte,SByte>.AdditiveIdentity

取得目前型別的加法識別。

IBinaryInteger<SByte>.GetByteCount()

取得將寫入為 TryWriteLittleEndian(Span<Byte>, Int32)一部分的位元元組數目。

IBinaryInteger<SByte>.GetShortestBitLength()

取得最短兩個目前值的補碼表示長度,以位為單位。

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

表示8位帶正負號的整數。

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

表示8位帶正負號的整數。

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

嘗試以 big-endian 格式將目前的值寫入指定的範圍。

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

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

IBinaryNumber<SByte>.AllBitsSet

取得已設定所有位之二進位型別的實例。

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

計算兩個值的位和 。

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

計算兩個值的位或兩個值。

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

計算兩個值的獨佔或兩個值。

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

計算指定值的 ones-complement 表示法。

IComparable.CompareTo(Object)

比較目前實例與相同型別的另一個物件,並傳回整數,指出目前的實例是否在排序順序中與其他對象位於相同位置。

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

比較兩個值,以判斷哪一個值更大。

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

比較兩個值,以判斷哪一個值大於或相等。

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

比較兩個值,以判斷哪一個值較少。

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

比較兩個值,以判斷哪一個值小於或相等。

IConvertible.GetTypeCode()

傳回這個實例的 TypeCode

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<SByte>.CheckedDecrement(SByte)

遞減值。

IDecrementOperators<SByte>.Decrement(SByte)

遞減值。

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

將一個值除以計算其商數。

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

比較兩個值以判斷相等。

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

比較兩個值以判斷不相等。

IIncrementOperators<SByte>.CheckedIncrement(SByte)

遞增值。

IIncrementOperators<SByte>.Increment(SByte)

遞增值。

IMinMaxValue<SByte>.MaxValue

取得目前型別的最大值。

IMinMaxValue<SByte>.MinValue

取得目前型別的最小值。

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

將兩個值分割在一起,以計算其模數或餘數。

IMultiplicativeIdentity<SByte,SByte>.MultiplicativeIdentity

取得目前型別的乘法識別。

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

將兩個值相乘以計算其產品。

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

將兩個值相乘以計算其產品。

INumber<SByte>.MaxNumber(SByte, SByte)

比較兩個值與計算,如果輸入是 NaN,則傳回另一個值。

INumber<SByte>.MinNumber(SByte, SByte)

比較兩個值與計算,如果輸入 NaN,則傳回另一個值。

INumberBase<SByte>.IsCanonical(SByte)

判斷值是否在其標準表示法中。

INumberBase<SByte>.IsComplexNumber(SByte)

判斷值是否代表複數。

INumberBase<SByte>.IsFinite(SByte)

判斷值是否有限。

INumberBase<SByte>.IsImaginaryNumber(SByte)

判斷值是否代表純虛數。

INumberBase<SByte>.IsInfinity(SByte)

判斷值是否為無限。

INumberBase<SByte>.IsInteger(SByte)

判斷值是否代表整數。

INumberBase<SByte>.IsNaN(SByte)

判斷值是否為 NaN。

INumberBase<SByte>.IsNegativeInfinity(SByte)

判斷值是否為負無限大。

INumberBase<SByte>.IsNormal(SByte)

判斷值是否正常。

INumberBase<SByte>.IsPositiveInfinity(SByte)

判斷值是否為正無限大。

INumberBase<SByte>.IsRealNumber(SByte)

判斷值是否代表實數。

INumberBase<SByte>.IsSubnormal(SByte)

判斷值是否為次正規。

INumberBase<SByte>.IsZero(SByte)

判斷值是否為零。

INumberBase<SByte>.MaxMagnitudeNumber(SByte, SByte)

比較兩個值與計算,如果輸入 NaN,則其大小更大,並傳回另一個值。

INumberBase<SByte>.MinMagnitudeNumber(SByte, SByte)

比較兩個值與計算,如果輸入是 NaN,則其大小較小,並傳回另一個值。

INumberBase<SByte>.MultiplyAddEstimate(SByte, SByte, SByte)

計算 (left * right) + addend的估計值。

INumberBase<SByte>.One

取得型別的值 1

INumberBase<SByte>.Radix

取得型別的基底或基底。

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

表示8位帶正負號的整數。

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

表示8位帶正負號的整數。

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

表示8位帶正負號的整數。

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

嘗試將目前類型的實例轉換成另一個類型,針對落在目前類型可表示範圍以外的任何值擲回溢位例外狀況。

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

嘗試將目前類型的實例轉換成另一個類型,使任何落在目前類型可表示範圍以外的值飽和。

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

嘗試將目前類型的實例轉換成另一個類型,截斷落在目前類型可表示範圍以外的任何值。

INumberBase<SByte>.Zero

取得型別的值 0

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

將指定數量留下的值移位。

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

將值向右移位指定的數量。

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

將值向右移位指定的數量。

ISignedNumber<SByte>.NegativeOne

取得型別的值 -1

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

減去兩個值來計算其差異。

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

減去兩個值來計算其差異。

IUnaryNegationOperators<SByte,SByte>.CheckedUnaryNegation(SByte)

計算值的已核取一元否定。

IUnaryNegationOperators<SByte,SByte>.UnaryNegation(SByte)

計算值的一元負值。

IUnaryPlusOperators<SByte,SByte>.UnaryPlus(SByte)

計算值的一元加號。

適用於

執行緒安全性

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

另請參閱