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/ba06783a344b5f4b758e945a63d7b813 to your computer and use it in GitHub Desktop.
Save parzibyte/ba06783a344b5f4b758e945a63d7b813 to your computer and use it in GitHub Desktop.
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