Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 7, 2019 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/a4ce27b6685d8ce8d44921d58f83d65b to your computer and use it in GitHub Desktop.
Save parzibyte/a4ce27b6685d8ce8d44921d58f83d65b to your computer and use it in GitHub Desktop.
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