Byte.Parse Method

Converts a string representation of a number to its Byte equivalent.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

[CLSCompliantAttribute(false)]
public static byte Parse (
         strings
)

Parameters

  • s
    The numeric string to be parsed. The string may begin and end with whitespace characters. After the optional beginning white space, a sign character ('+' or '-') may appear. The rest of the string must contain decimal digits (0-9).

Return Value

The Byte equivalent of the number expressed in the s parameter.

Version Information

Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

Byte Structure
Byte Members
System Namespace