SByte Estructura

Definición

Importante

Esta API no es conforme a CLS.

Alternativa conforme a CLS
System.Int16

Representa un entero con signo de 8 bits.

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
Herencia
Atributos
Implementaciones
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>

Comentarios

El SByte tipo de valor representa enteros con valores que van de 128 negativos a 127 positivos.

Importante

El SByte tipo no es conforme a CLS. El tipo alternativo conforme a CLS es Int16. Byte se puede usar en su lugar para reemplazar un valor positivo SByte que va de cero a MaxValue. Para obtener más información sobre el cumplimiento de CLS, consulte Language Independence and Language-Independent Components.

SByte proporciona métodos para comparar instancias de este tipo, convertir el valor de una instancia en su representación de cadena y convertir la representación de cadena de un número en una instancia de este tipo.

Para obtener información sobre cómo los códigos de especificación de formato controlan la representación de cadena de los tipos de valor, vea Formatear tipos.

Campos

MaxValue

Representa el mayor valor posible de SByte. Este campo es constante.

MinValue

Representa el menor valor posible de SByte. Este campo es constante.

Métodos

Abs(SByte)

Calcula el valor absoluto de un valor.

Clamp(SByte, SByte, SByte)

Fija un valor en un valor mínimo inclusivo y máximo.

CompareTo(Object)

Compara esta instancia con un objeto especificado y devuelve una indicación de los valores relativos.

CompareTo(SByte)

Compara esta instancia con un entero de 8 bits con signo y devuelve una indicación de los valores relativos.

CopySign(SByte, SByte)

Copia el signo de un valor en el signo de otro valor.

CreateChecked<TOther>(TOther)

Crea una instancia del tipo actual a partir de un valor, iniciando una excepción de desbordamiento para los valores que se encuentran fuera del intervalo que se puede representar del tipo actual.

CreateSaturating<TOther>(TOther)

Crea una instancia del tipo actual a partir de un valor, saturando los valores que se encuentran fuera del intervalo representable del tipo actual.

CreateTruncating<TOther>(TOther)

Crea una instancia del tipo actual a partir de un valor, truncando los valores que se encuentran fuera del intervalo que se puede representar del tipo actual.

DivRem(SByte, SByte)

Calcula el cociente y el resto de dos valores.

Equals(Object)

Devuelve un valor que indica si esta instancia equivale a un objeto especificado.

Equals(SByte)

Devuelve un valor que indica si esta instancia equivale a un valor de SByte especificado.

GetHashCode()

Devuelve el código hash de esta instancia.

GetTypeCode()

Devuelve el TypeCode para el tipo de valor SByte.

IsEvenInteger(SByte)

Determina si un valor representa un número entero par.

IsNegative(SByte)

Determina si un valor es negativo.

IsOddInteger(SByte)

Determina si un valor representa un número entero impar.

IsPositive(SByte)

Determina si un valor es positivo.

IsPow2(SByte)

Determina si un valor es una potencia de dos.

LeadingZeroCount(SByte)

Calcula el número de ceros a la izquierda en un valor.

Log2(SByte)

Calcula el registro2 de un valor.

Max(SByte, SByte)

Compara dos valores con el proceso, que es mayor.

MaxMagnitude(SByte, SByte)

Compara dos valores con el proceso, que es mayor.

Min(SByte, SByte)

Compara dos valores con el proceso, que es menor.

MinMagnitude(SByte, SByte)

Compara dos valores con el proceso, que es menor.

Parse(ReadOnlySpan<Byte>, IFormatProvider)

Analiza un intervalo de caracteres UTF-8 en un valor.

Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Analiza un intervalo de caracteres UTF-8 en un valor.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Analiza un intervalo de caracteres en un valor.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Convierte la representación de intervalo de un número con el estilo y el formato específicos de la referencia cultural que se hayan especificado en el entero de 8 bits con signo equivalente.

Parse(String)

Convierte la representación en forma de cadena de un número en el entero de 8 bits con signo equivalente.

Parse(String, IFormatProvider)

Convierte la representación en forma de cadena de un número en el formato específico de la referencia cultural que se haya especificado en el entero de 8 bits con signo equivalente.

Parse(String, NumberStyles)

Convierte la representación en forma de cadena de un número con el estilo especificado en el entero de 8 bits con signo equivalente.

Parse(String, NumberStyles, IFormatProvider)

Convierte la representación en forma de cadena de un número con el estilo y el formato específico de la referencia cultural que se hayan especificado en el entero de 8 bits con signo equivalente.

PopCount(SByte)

Calcula el número de bits establecidos en un valor.

RotateLeft(SByte, Int32)

Gira un valor de izquierda por una cantidad determinada.

RotateRight(SByte, Int32)

Gira un valor a la derecha por una cantidad determinada.

Sign(SByte)

Calcula el signo de un valor.

ToString()

Convierte el valor numérico de esta instancia en la representación de cadena equivalente.

ToString(IFormatProvider)

Convierte el valor numérico de esta instancia en la representación de cadena equivalente usando la información de formato específica de la referencia cultural especificada.

ToString(String)

Convierte el valor numérico de esta instancia en la representación de cadena equivalente usando el formato especificado.

ToString(String, IFormatProvider)

Convierte el valor numérico de esta instancia en su representación de cadena equivalente mediante el formato y la información de formato específica de la referencia cultural que se especificaran.

TrailingZeroCount(SByte)

Calcula el número de ceros finales en un valor.

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

Intenta dar formato al valor de la instancia actual como UTF-8 en el intervalo de bytes proporcionado.

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

Intenta dar formato al valor de la instancia de entero con signo de 8 bits actual en el intervalo de caracteres proporcionado.

TryParse(ReadOnlySpan<Byte>, IFormatProvider, SByte)

Intenta analizar un intervalo de caracteres UTF-8 en un valor.

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

Intenta analizar un intervalo de caracteres UTF-8 en un valor.

TryParse(ReadOnlySpan<Byte>, SByte)

Intenta convertir un intervalo de caracteres UTF-8 que contiene la representación de cadena de un número en su entero de 8 bits con signo equivalente.

TryParse(ReadOnlySpan<Char>, IFormatProvider, SByte)

Intenta analizar un intervalo de caracteres en un valor.

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

Intenta convertir la representación de intervalo de un número con el estilo y el formato específico de la referencia cultural que se hayan especificado en su valor SByte equivalente y devuelve un valor que indica si la conversión se ha realizado correctamente.

TryParse(ReadOnlySpan<Char>, SByte)

Intenta convertir la representación de intervalo de un número en su valor SByte equivalente y devuelve un valor que indica si la conversión se ha realizado correctamente.

TryParse(String, IFormatProvider, SByte)

Intenta analizar una cadena en un valor.

TryParse(String, NumberStyles, IFormatProvider, SByte)

Intenta convertir la representación de cadena de un número con un estilo específico y un formato específico de la referencia cultural en su equivalente de SByte y devuelve un valor que indica si la conversión fue correcta.

TryParse(String, SByte)

Intenta convertir la representación en forma de cadena de un número en su equivalente SByte y devuelve un valor que indica si la conversión tuvo éxito.

Implementaciones de interfaz explícitas

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

Agrega dos valores juntos para calcular su suma.

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

Agrega dos valores juntos para calcular su suma.

IAdditiveIdentity<SByte,SByte>.AdditiveIdentity

Obtiene la identidad de aditivo del tipo actual.

IBinaryInteger<SByte>.GetByteCount()

Obtiene el número de bytes que se escribirán como parte de TryWriteLittleEndian(Span<Byte>, Int32).

IBinaryInteger<SByte>.GetShortestBitLength()

Obtiene la longitud, en bits, de la representación complementaria de dos más corta del valor actual.

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

Representa un entero con signo de 8 bits.

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

Representa un entero con signo de 8 bits.

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

Intenta escribir el valor actual, en formato big-endian, en un intervalo determinado.

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

Intenta escribir el valor actual, en formato little-endian, en un intervalo determinado.

IBinaryNumber<SByte>.AllBitsSet

Obtiene una instancia del tipo binario en el que se establecen todos los bits.

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

Calcula el bit a bit y de dos valores.

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

Calcula el bit a bit o de dos valores.

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

Calcula el valor exclusivo o de dos valores.

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

Calcula la representación del complemento uno de un valor determinado.

IComparable.CompareTo(Object)

Compara la instancia actual con otro objeto del mismo tipo y devuelve un entero que indica si la posición de la instancia actual es anterior, posterior o igual que la del otro objeto en el criterio de ordenación.

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

Compara dos valores para determinar cuál es mayor.

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

Compara dos valores para determinar cuál es mayor o igual.

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

Compara dos valores para determinar cuál es menor.

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

Compara dos valores para determinar cuál es menor o igual.

IConvertible.GetTypeCode()

Devuelve el TypeCode para esta instancia.

IConvertible.ToBoolean(IFormatProvider)

Para obtener una descripción de este miembro, vea ToBoolean(IFormatProvider).

IConvertible.ToByte(IFormatProvider)

Para obtener una descripción de este miembro, vea ToByte(IFormatProvider).

IConvertible.ToChar(IFormatProvider)

Para obtener una descripción de este miembro, vea ToChar(IFormatProvider).

IConvertible.ToDateTime(IFormatProvider)

No se admite esta conversión. Si se intenta, se produce una excepción InvalidCastException.

IConvertible.ToDecimal(IFormatProvider)

Para obtener una descripción de este miembro, vea ToDecimal(IFormatProvider).

IConvertible.ToDouble(IFormatProvider)

Para obtener una descripción de este miembro, vea ToDouble(IFormatProvider).

IConvertible.ToInt16(IFormatProvider)

Para obtener una descripción de este miembro, vea ToInt16(IFormatProvider).

IConvertible.ToInt32(IFormatProvider)

Para obtener una descripción de este miembro, vea ToInt32(IFormatProvider).

IConvertible.ToInt64(IFormatProvider)

Para obtener una descripción de este miembro, vea ToInt64(IFormatProvider).

IConvertible.ToSByte(IFormatProvider)

Para obtener una descripción de este miembro, vea ToSByte(IFormatProvider).

IConvertible.ToSingle(IFormatProvider)

Para obtener una descripción de este miembro, vea ToSingle(IFormatProvider).

IConvertible.ToType(Type, IFormatProvider)

Para obtener una descripción de este miembro, vea ToType(Type, IFormatProvider).

IConvertible.ToUInt16(IFormatProvider)

Para obtener una descripción de este miembro, vea ToUInt16(IFormatProvider).

IConvertible.ToUInt32(IFormatProvider)

Para obtener una descripción de este miembro, vea ToUInt32(IFormatProvider).

IConvertible.ToUInt64(IFormatProvider)

Para obtener una descripción de este miembro, vea ToUInt64(IFormatProvider).

IDecrementOperators<SByte>.CheckedDecrement(SByte)

Disminuye un valor.

IDecrementOperators<SByte>.Decrement(SByte)

Disminuye un valor.

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

Divide un valor por otro para calcular su cociente.

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

Compara dos valores para determinar la igualdad.

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

Compara dos valores para determinar la desigualdad.

IIncrementOperators<SByte>.CheckedIncrement(SByte)

Incrementa un valor.

IIncrementOperators<SByte>.Increment(SByte)

Incrementa un valor.

IMinMaxValue<SByte>.MaxValue

Obtiene el valor máximo del tipo actual.

IMinMaxValue<SByte>.MinValue

Obtiene el valor mínimo del tipo actual.

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

Divide dos valores juntos para calcular su módulo o resto.

IMultiplicativeIdentity<SByte,SByte>.MultiplicativeIdentity

Obtiene la identidad multiplicativa del tipo actual.

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

Multiplica dos valores juntos para calcular su producto.

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

Multiplica dos valores juntos para calcular su producto.

INumber<SByte>.MaxNumber(SByte, SByte)

Compara dos valores para calcular que es mayor y devolver el otro valor si una entrada es NaN.

INumber<SByte>.MinNumber(SByte, SByte)

Compara dos valores con el proceso que es menor y devuelve el otro valor si una entrada es NaN.

INumberBase<SByte>.IsCanonical(SByte)

Determina si un valor está en su representación canónica.

INumberBase<SByte>.IsComplexNumber(SByte)

Determina si un valor representa un número complejo.

INumberBase<SByte>.IsFinite(SByte)

Determina si un valor es finito.

INumberBase<SByte>.IsImaginaryNumber(SByte)

Determina si un valor representa un número imaginario puro.

INumberBase<SByte>.IsInfinity(SByte)

Determina si un valor es infinito.

INumberBase<SByte>.IsInteger(SByte)

Determina si un valor representa un número entero.

INumberBase<SByte>.IsNaN(SByte)

Determina si un valor es NaN.

INumberBase<SByte>.IsNegativeInfinity(SByte)

Determina si un valor es infinito negativo.

INumberBase<SByte>.IsNormal(SByte)

Determina si un valor es normal.

INumberBase<SByte>.IsPositiveInfinity(SByte)

Determina si un valor es infinito positivo.

INumberBase<SByte>.IsRealNumber(SByte)

Determina si un valor representa un número real.

INumberBase<SByte>.IsSubnormal(SByte)

Determina si un valor es subnormal.

INumberBase<SByte>.IsZero(SByte)

Determina si un valor es cero.

INumberBase<SByte>.MaxMagnitudeNumber(SByte, SByte)

Compara dos valores con el proceso que tiene la magnitud mayor y devuelve el otro valor si una entrada es NaN.

INumberBase<SByte>.MinMagnitudeNumber(SByte, SByte)

Compara dos valores con el proceso que tiene la magnitud menor y devuelve el otro valor si una entrada es NaN.

INumberBase<SByte>.One

Obtiene el valor 1 del tipo .

INumberBase<SByte>.Radix

Obtiene la raíz, o base, para el tipo.

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

Representa un entero con signo de 8 bits.

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

Representa un entero con signo de 8 bits.

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

Representa un entero con signo de 8 bits.

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

Intenta convertir una instancia del tipo actual en otro tipo, iniciando una excepción de desbordamiento para los valores que se encuentran fuera del intervalo representable del tipo actual.

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

Intenta convertir una instancia del tipo actual en otro tipo, saturando los valores que se encuentran fuera del intervalo que se puede representar del tipo actual.

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

Intenta convertir una instancia del tipo actual en otro tipo, truncando los valores que se encuentran fuera del intervalo que se puede representar del tipo actual.

INumberBase<SByte>.Zero

Obtiene el valor 0 del tipo .

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

Desplaza un valor a la izquierda por una cantidad determinada.

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

Desplaza un valor a la derecha por una cantidad determinada.

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

Desplaza un valor a la derecha por una cantidad determinada.

ISignedNumber<SByte>.NegativeOne

Obtiene el valor -1 del tipo .

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

Resta dos valores para calcular su diferencia.

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

Resta dos valores para calcular su diferencia.

IUnaryNegationOperators<SByte,SByte>.CheckedUnaryNegation(SByte)

Calcula la negación unaria comprobada de un valor.

IUnaryNegationOperators<SByte,SByte>.UnaryNegation(SByte)

Calcula la negación unaria de un valor.

IUnaryPlusOperators<SByte,SByte>.UnaryPlus(SByte)

Calcula la unaria más de un valor.

Se aplica a

Seguridad para subprocesos

Todos los miembros de este tipo son seguros para subprocesos. Los miembros que parecen modificar el estado de instancia devuelven realmente una nueva instancia inicializada con el nuevo valor. Al igual que con cualquier otro tipo, leer y escribir en una variable compartida que contenga una instancia de este tipo debe estar protegida por un bloqueo para garantizar la seguridad de los subprocesos.

Consulte también