Created
August 7, 2019 23:05
-
-
Save parzibyte/ba06783a344b5f4b758e945a63d7b813 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
using System.Globalization; | |
class Ejemplo{ | |
public static void Main(){ | |
string saludo = "ME LLAMO JOSÉ"; // En mayúscula | |
CultureInfo ci = new CultureInfo("es-LA"); | |
if(saludo.EndsWith("é", true, ci)){ | |
System.Console.WriteLine("Termina con la letra é"); | |
}else{ | |
System.Console.WriteLine("No termina con é"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment