C# Convert ToString(Byte)
Description
Convert ToString(Byte)
converts the value of the specified
8-bit unsigned integer to its equivalent string representation.
Syntax
Convert.ToString(Byte)
has the following syntax.
public static string ToString(
byte value
)
Parameters
Convert.ToString(Byte)
has the following parameters.
value
- The 8-bit unsigned integer to convert.
Returns
Convert.ToString(Byte)
method returns The string representation of value.
Example
//from w w w . j a va 2 s . c o m
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToString((Byte)12));
}
}
The code above generates the following result.