I am trying to extract the number out of the last part of the string, I have wrote a function to do this but am having problems with out of range index.
Here is the stri
The second argument to Substring(int, int) isn't the "end position", but the length of the substring to return.
Substring(int, int)
result = property.Substring(startPos, endPos - startPos);