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

Popular posts from this blog

simple program C#

Regular Expression Validator Control in asp.net

two dimension array in C#