how can I check if a string is a positive integer?
c#, int, parsing
Solution
int x;
if (int.TryParse(str, out x) && x > 0)
Problem
I mean : ``` 1231 YES 121.1241 NO 121,1241 NO -121 NO 124a NO ``` how can i do it faster in C#?
c#, int, parsing
int x;
if (int.TryParse(str, out x) && x > 0)
I mean : ``` 1231 YES 121.1241 NO 121,1241 NO -121 NO 124a NO ``` how can i do it faster in C#?