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:
Related in same category :
-
-
-
|