Created
August 7, 2019 23:05
-
-
Save parzibyte/a4ce27b6685d8ce8d44921d58f83d65b 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 = "Hola, mundO"; | |
CultureInfo ci = new CultureInfo("es-LA"); | |
if(saludo.EndsWith("o", true, ci)){ | |
System.Console.WriteLine("Termina con la letra o"); | |
}else{ | |
System.Console.WriteLine("No termina con o"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment