static void Main(string[] args) { Dictionary<string, string> paraNameValueDict = new Dictionary<string, string>(); int count = 0; count = paraNameValueDict.Count; Console.WriteLine("{0}", count); paraNameValueDict["hello"] = "World"; count = paraNameValueDict.Count; Console.WriteLine("{0}", count); //0 //1 //请按任意键继续. . . }
时间: 2024-12-04 04:54:29