-
-
Save christiannagel/fbd190bb28ef313de09e58ef6f2d6a5e to your computer and use it in GitHub Desktop.
Accessing a substring using the old syntax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string text1 = "the quick brown fox jumped over the lazy dogs"; | |
string lazyDogs1 = text1.Substring(36, 9); | |
string lazyDogs2 = text1.Substring(text1.Length - 9, 9); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment