Open utterances-bot opened 1 year ago
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
Thanks for the good article and using Int.TryParse for converting currency, I stumbled upon this when converting string to int.
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