I get a string from an external interface that contains a value INT32. This value represents "-100" - a signed int - and therefore looks like this line "4294967196". If it was like -100, I could use Int32.TryParse()to pass it to the signed value. But in my case, he interprets the values as they are and tells me that the value is too large (> 2.147.483.647). Any workaround to get this to work? How to tell the parser that lead 1 is not a number?
Edit: Sorry for the inaccuracy. The value I get is a string that looks like this: "4294967196". It represents Uint32with a value of -100. If the interface returns a string containing "-100", you can simply use it Int32.TryParse(). This is what I tried to express.
source
share