C# Convert ToByte(Byte)
Description
Convert ToByte(Byte)
returns the specified 8-bit unsigned
integer; no actual conversion is performed.
Syntax
Convert.ToByte(Byte)
has the following syntax.
public static byte ToByte(
byte value
)
Parameters
Convert.ToByte(Byte)
has the following parameters.
value
- The 8-bit unsigned integer to return.
Returns
Convert.ToByte(Byte)
method returns value is returned unchanged.
Example
//w ww. j a va 2s . co m
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToByte(1));
}
}
The code above generates the following result.