How to add duplicate keys into the Dictionary

后端 未结 6 688
闹比i
闹比i 2021-01-31 17:37

I have some lines from text files that i want to add into the Dictionary.I am using Dictionary for the first time.While adding up starting lines it was Ok but suddenly i got err

6条回答
  •  耶瑟儿~
    2021-01-31 18:30

    We can Use a List of Key Value Pair

    List> myduplicateLovingDictionary= new List>();
    KeyValuePair myItem = new KeyValuePair(dialedno, line);
    myduplicateLovingDictionary.Add(myItem);
    

提交回复
热议问题