Click or drag to resize
Byte Structure
Represents an 8-bit unsigned integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Byte : IComparable, IFormattable, 
	IConvertible, IComparable<byte>, IEquatable<byte>

The Byte type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(Byte)
Compares this instance to a specified 8-bit unsigned integer and returns an indication of their relative values.
Public methodCompareTo(Object)
Compares this instance to a specified object and returns an indication of their relative values.
Public methodEquals(Byte)
Returns a value indicating whether this instance and a specified Byte object represent the same value.
Public methodEquals(Object)
Returns a value indicating whether this instance is equal to a specified object.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Converts the value of the current Byte object to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of the current Byte object to its equivalent string representation using the specified culture-specific formatting information.
Public methodToString(String)
Converts the value of the current Byte object to its equivalent string representation using the specified format.
Public methodToString(String, IFormatProvider)
Converts the value of the current Byte object to its equivalent string representation using the specified format and culture-specific formatting information.
Top
Fields
  NameDescription
Public fieldStatic memberMaxValue
Represents the largest possible value of a Byte. This field is constant.
Public fieldStatic memberMinValue
Represents the smallest possible value of a Byte. This field is constant.
Top
See Also