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
Read the documentation again, the second value is the length, not the index.
As found on MSDN:
public string Substring( int startIndex, int length )