Mega Code Archive
Categories
/
C# Tutorial
/
Data Type
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"); } }