Use System.Convert to convert string to Int16 : System Convert : Data Type C# Examples


C# Examples » Data Type » System Convert »

 

Use System.Convert to convert string to Int16









    
using  System;

class  MainClass
{
        public  static  void  Main(string[]  argv)
        {
            int  a  =  System.Convert.ToInt16("1");
            int  b  =  System.Convert.ToInt16("2");

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Type
» System Convert