Created
January 6, 2019 23:24
-
-
Save carloscds/1bbdbab5652f0b73b2ba110d7444cc89 to your computer and use it in GitHub Desktop.
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 str = "Exemplo em C# 8"; | |
string palavra = str[^4..^0]; | |
Console.WriteLine(palavra); | |
string final = str[^4..]; | |
Console.WriteLine(final); | |
string inicio = str[..7]; | |
Console.WriteLine(inicio); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment