code4it-dev / blog-comments

https://www.code4it.dev/
1 stars 0 forks source link

blog/advanced-int-tryparse #29

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Advanced parsing using Int.TryParse in C# - Code4IT

We all need to parse strings as integers. Most of the time, we use int.TryParse(string, out int). But there's a more advanced overload that we can use for complex parsing.

https://www.code4it.dev/blog/advanced-int-tryparse

Vikas-jk commented 1 year ago

Thanks for the good article and using Int.TryParse for converting currency, I stumbled upon this when converting string to int.