Below is a sample code snippet demonstrating How to convert string to Int16 using System.Convert in C#
using System; namespace AbundantCode { internal class Program { // Convert string to Int16 using System.Convert in C# private static void Main(string[] args) { string input = "1985"; int OutPut = System.Convert.ToInt16(input); Console.ReadLine(); } } }
Leave a Reply