how can convert string to int csharp

C#
string userInput = Console.ReadLine();
int convert;
Int32.TryParse(userInput, out convert);  // Converting String to intInt16.Parse("100");
Source

Also in C#: