Skip to content

Instantly share code, notes, and snippets.

@christiannagel
Created July 10, 2018 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannagel/fbd190bb28ef313de09e58ef6f2d6a5e to your computer and use it in GitHub Desktop.
Save christiannagel/fbd190bb28ef313de09e58ef6f2d6a5e to your computer and use it in GitHub Desktop.
Accessing a substring using the old syntax
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