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