I am learning C# there I came across two programs they both, get the users' input at the run time. The first program is using int.Parse() method to convert the string to int and the second program is using the Convert.ToInt32() to do the same task. Now my question is what is the difference between this two methods, and what are the other methods available like this one to convert strings to int.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.