Skip to content

Instantly share code, notes, and snippets.

@mrlacey
Created December 3, 2013 22:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mrlacey/7779172 to your computer and use it in GitHub Desktop.
GlobeKeyReplacement
private static List<AlphaKeyGroup<PhoneContact>> CreateGroups(SortedLocaleGrouping slg)
{
var list = new List<AlphaKeyGroup<PhoneContact>>();
foreach (string key in slg.GroupDisplayNames)
{
var k = key;
if (key == "...")
{
k = "🌐"; // &#x1F310;
}
list.Add(new AlphaKeyGroup<PhoneContact>(k));
}
return list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment