Answers

Question and Answer:

  Home  C# (Sharp) Programming Language

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

Here's an example: using System;

class StringToInt

{

public static void Main()

{

String s = "105";

int x = Convert.ToInt32(s);

Console.WriteLine(x);

}

}

 147 views

More Questions for you: