c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
c# .net

how to convert string to int in .net C# ?

| | ASP-NET , CSharp , MVC

If you have a string such as "456", you cannot do math with it, or use it anywhere you could use an integer unless you first need to convert it to the int type.


  


String s = "456";
int i = Convert
.ToInt16(s);