public static boolean matchesExtension(String filename, String ext) {return filename.endsWith("." + ext);}

public static bool MatchesExtension(string filename, string ext){return filename.EndsWith("." + ext, StringComparison.Ordinal);}
