-
-
Save christiannagel/d877ebb8d3fdc8c62008bacc5f12ec6f to your computer and use it in GitHub Desktop.
More range syntax with C# 8
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 lazyDogs5 = text1[^9..]; // Range.FromStart | |
string lazyDogs6 = text1[36..]; // Range.FromStart | |
string thequick = text1[..9]; // Range.ToEnd | |
string completeString = text1[..]; // Range.All |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment