Created
August 29, 2013 16:28
-
-
Save Fhernd/6380346 to your computer and use it in GitHub Desktop.
Representación de un caracter en C# por medio del tipo de dato char.
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
class LiteralCaracter | |
{ | |
static void Main() | |
{ | |
char c = "perls"[4]; | |
if (c == 's') | |
{ | |
Console.WriteLine(true); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment