up vote 47 down vote favorite. 7. How do I convert a string to an integer in C#? ... Why the VB.NET tag?
stackoverflow.com