How do I convert a string to an int in C#?

Submitted by: Administrator
Here's an example: using System;
class StringToInt
{
public static void Main()
{
String s = "105";
int x = Convert.ToInt32(s);
Console.WriteLine(x);
}
}
Submitted by: Administrator

Read Online C# (Sharp) Programming Language Job Interview Questions And Answers