use of helper class conversion in C#
For Example : Write a program to demonstrate the use of helper class conversion.
//Program is constructor under Aryan Computers, Barshi
class Program
{
static void Main(string[]
args)
{
string
x = "900";
int
z = int.Parse(x);//
converting string to int type
Console.WriteLine("Value of x is in string: " + x);
Console.WriteLine("Converted of x int value (Help of parse): "
+ z);
Console.ReadLine();
}
}
Output:
Comments
Post a Comment