If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

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

Started by chinmay.sahoo, 03-29-2016, 03:42:10

Previous topic - Next topic

chinmay.sahooTopic starter

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




Quoteusing System;
     class conversion
     {
     public static void Main()
     {
     String s1 = "100";
     int y = Convert.ToInt32(s1);
     Console.WriteLine(y);
     }
     }



If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...