public static string[] GetCategories() { Dictionary<string, int> itemMap = new Dictionary<string, int>(); int count = itemMap.Count; string[] keys = new string[count]; itemMap.Keys.CopyTo( keys, 0 ); return keys; }