public static CharMatchMode MatchTo(this char a, char b) { if (a.TypesMatch(a)) { if (a.CasesMatch(b)) { return(CharMatchMode.FullMatch); } return(CharMatchMode.MatchesType); } return(CharMatchMode.NoMatch); }