public static string ToEmoji(this string S) { var Out = ""; foreach (var c in S.ToLower()) { if (Emoji.ContainsKey(c)) { Out += Emoji[c]; } } return(Out); }
public static string ToEmoji(this char c) { c = c.ToString().ToLower()[0]; return((Emoji.ContainsKey(c)) ? Emoji[c] : ""); }