Int32.TryParse Method (System) | Microsoft Learn
learn.microsoft.com › en-us › dotnetTryParse (String, NumberStyles, IFormatProvider, Int32) Definition Namespace: System Assembly: System.Runtime.dll Converts the string representation of a number to its 32-bit signed integer equivalent. A return value indicates whether the operation succeeded. Overloads TryParse (String, IFormatProvider, Int32) Tries to parse a string into a value.