Parsing strings to create data types : Data Type : Data Type C# Examples


C# Examples » Data Type » Data Type »

 

Parsing strings to create data types









    
using  System;

class  MainClass
{
        public  static  void  Main(string[]  args)
        {
        int  myInt  =  int.Parse("8");
        Console.WriteLine("->  Value  of  myInt:  {0}",  myInt);
        }
}
    
   
  
   



Output

-> Value of myInt: 8


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» Data Type