C# Convert ToString(Int32)
Description
Convert ToString(Int32)
converts the value of the specified
32-bit signed integer to its equivalent string representation.
Syntax
Convert.ToString(Int32)
has the following syntax.
public static string ToString(
int value
)
Parameters
Convert.ToString(Int32)
has the following parameters.
value
- The 32-bit signed integer to convert.
Returns
Convert.ToString(Int32)
method returns The string representation of value.
Example
// w w w.j av a2s.c o m
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToString((Int32)123));
}
}
The code above generates the following result.