SByte 구조체
정의
8비트 부호 있는 정수를 나타냅니다.Represents an 8-bit signed integer.
public value class SByte : IComparable, IComparable<System::SByte>, IConvertible, IEquatable<System::SByte>, IFormattable
public value class SByte : IComparable, IConvertible, IFormattable
public value class 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)]
[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)>]
[<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, IConvertible, IFormattable
Public Structure SByte
Implements IComparable, IComparable(Of SByte), IEquatable(Of SByte), IFormattable
- 상속
- 특성
- 구현
설명
SByte값 형식은 음수 128에서 양수 127 범위의 값을 갖는 정수를 나타냅니다.The SByte value type represents integers with values ranging from negative 128 to positive 127.
중요
SByte형식이 CLS 규격이 아닙니다.The SByte type is not CLS-compliant. CLS 규격 대체 형식은 Int16 입니다.The CLS-compliant alternative type is Int16. Byte 대신를 사용 하 여 SByte 0에서 사이의 양수 값을 바꿀 수 있습니다 MaxValue .Byte can be used instead to replace a positive SByte value that ranges from zero to MaxValue. CLS 규격에 대 한 자세한 내용은 언어 독립성 및 Language-Independent 구성 요소를 참조 하세요.For more information about CLS compliance, see Language Independence and Language-Independent Components.
SByte 이 형식의 인스턴스를 비교 하 고, 인스턴스의 값을 해당 문자열 표현으로 변환 하 고, 숫자의 문자열 표현을이 형식의 인스턴스로 변환 하는 메서드를 제공 합니다.SByte provides methods to compare instances of this type, convert the value of an instance to its string representation, and convert the string representation of a number to an instance of this type.
형식 지정 코드에서 값 형식의 문자열 표현을 제어 하는 방법에 대 한 자세한 내용은 형식 서식 지정을 참조 하세요.For information about how format specification codes control the string representation of value types, see Formatting Types.
필드
MaxValue |
SByte의 가능한 최대값을 나타냅니다.Represents the largest possible value of SByte. 이 필드는 상수입니다.This field is constant. |
MinValue |
SByte의 가능한 최소값을 나타냅니다.Represents the smallest possible value of SByte. 이 필드는 상수입니다.This field is constant. |
메서드
CompareTo(Object) |
이 인스턴스를 지정된 개체와 비교하여 상대 값의 표시를 반환합니다.Compares this instance to a specified object and returns an indication of their relative values. |
CompareTo(SByte) |
이 인스턴스를 지정된 8비트 부호 있는 정수와 비교하여 상대 값의 표시를 반환합니다.Compares this instance to a specified 8-bit signed integer and returns an indication of their relative values. |
Equals(Object) |
이 인스턴스가 지정된 개체와 같은지를 표시하는 값을 반환합니다.Returns a value indicating whether this instance is equal to a specified object. |
Equals(SByte) |
이 인스턴스가 지정된 SByte 값과 같은지를 나타내는 값을 반환합니다.Returns a value indicating whether this instance is equal to a specified SByte value. |
GetHashCode() |
이 인스턴스의 해시 코드를 반환합니다.Returns the hash code for this instance. |
GetTypeCode() |
TypeCode 값 형식에 대한 SByte를 반환합니다.Returns the TypeCode for value type SByte. |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider) |
지정된 스타일 및 문화권별 형식으로 된 숫자의 범위 표현을 해당하는 8비트 부호 있는 정수로 변환합니다.Converts the span representation of a number that is in a specified style and culture-specific format to its 8-bit signed equivalent. |
Parse(String) |
숫자의 문자열 표현을 해당하는 8비트 부호 있는 정수로 변환합니다.Converts the string representation of a number to its 8-bit signed integer equivalent. |
Parse(String, IFormatProvider) |
지정된 문화권별 형식으로 된 숫자의 문자열 표현을 해당하는 8비트 부호 있는 정수로 변환합니다.Converts the string representation of a number in a specified culture-specific format to its 8-bit signed integer equivalent. |
Parse(String, NumberStyles) |
지정된 스타일로 된 숫자의 문자열 표현을 해당하는 8비트 부호 있는 정수로 변환합니다.Converts the string representation of a number in a specified style to its 8-bit signed integer equivalent. |
Parse(String, NumberStyles, IFormatProvider) |
지정된 스타일 및 문화권별 형식으로 된 숫자의 문자열 표현을 해당하는 8비트 부호 있는 정수로 변환합니다.Converts the string representation of a number that is in a specified style and culture-specific format to its 8-bit signed equivalent. |
ToString() |
이 인스턴스의 숫자 값을 해당하는 문자열 표현으로 변환합니다.Converts the numeric value of this instance to its equivalent string representation. |
ToString(IFormatProvider) |
지정된 문화권별 형식 정보를 사용하여 이 인스턴스의 숫자 값을 해당 문자열 표현으로 변환합니다.Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. |
ToString(String) |
지정된 형식을 사용하여 이 인스턴스의 숫자 값을 해당 문자열 표현으로 변환합니다.Converts the numeric value of this instance to its equivalent string representation, using the specified format. |
ToString(String, IFormatProvider) |
지정된 형식 및 문화권별 형식 정보를 사용하여 이 인스턴스의 숫자 값을 해당 문자열 표현으로 변환합니다.Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
TryFormat(Span<Char>, Int32, ReadOnlySpan<Char>, IFormatProvider) |
현재의 8비트 부호 있는 정수 인스턴스의 값을 제공된 문자 범위로 지정하려고 시도합니다.Tries to format the value of the current 8-bit signed integer instance into the provided span of characters. |
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, SByte) |
지정된 스타일 및 문화권별 지정 형식으로 된 숫자의 범위 표현을 해당하는 SByte로 변환하고, 변환이 성공했는지를 나타내는 값을 반환하도록 시도합니다.Tries to convert the span representation of a number in a specified style and culture-specific format to its SByte equivalent, and returns a value that indicates whether the conversion succeeded. |
TryParse(ReadOnlySpan<Char>, SByte) |
숫자의 범위 표현을 해당하는 SByte로 변환하고, 변환이 성공했는지를 나타내는 값을 반환하도록 시도합니다.Tries to convert the span representation of a number to its SByte equivalent, and returns a value that indicates whether the conversion succeeded. |
TryParse(String, NumberStyles, IFormatProvider, SByte) |
지정된 문화권별 형식과 지정된 스타일을 사용한 숫자의 문자열 표현을 해당 SByte로 변환해 보고, 변환에 성공했는지를 나타내는 값을 반환합니다.Tries to convert the string representation of a number in a specified style and culture-specific format to its SByte equivalent, and returns a value that indicates whether the conversion succeeded. |
TryParse(String, SByte) |
숫자의 문자열 표현을 해당 SByte로 변환하고, 변환에 성공했는지를 나타내는 값을 반환합니다.Tries to convert the string representation of a number to its SByte equivalent, and returns a value that indicates whether the conversion succeeded. |
명시적 인터페이스 구현
적용 대상
스레드 보안
이 형식의 모든 멤버는 스레드로부터 안전 합니다.All members of this type are thread safe. 인스턴스 상태를 수정 하는 것 처럼 보이는 멤버는 실제로 새 값으로 초기화 된 새 인스턴스를 반환 합니다.Members that appear to modify instance state actually return a new instance initialized with the new value. 다른 형식과 마찬가지로이 형식의 인스턴스를 포함 하는 공유 변수에 대 한 읽기 및 쓰기는 스레드 안전을 보장 하기 위해 잠금으로 보호 되어야 합니다.As with any other type, reading and writing to a shared variable that contains an instance of this type must be protected by a lock to guarantee thread safety.