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; }
时间: 2024-11-25 13:21:30
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; }