Creating the IEnumerable> Objects with C#?

前端 未结 5 1498
野趣味
野趣味 2020-12-25 11:01

For testing purposes, I need to create an IEnumerable> object with the following sample key value pairs:



        
5条回答
  •  醉话见心
    2020-12-25 12:04

    Dictionary testDict = new Dictionary(2);
    testDict.Add("Name","John");
    testDict.Add("City","NY");
    

    Is that what you mean, or is there more to it?

提交回复
热议问题