The second link provides links to the specific overloads of the Substring method. Had you followed those you would have seen real examples.
myString.Substring(0, 3) returns a substring from myString starting at index 0 and containing 3 characters. You should be able to work out the others from that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.