Creating the IEnumerable> Objects with C#?

前端 未结 5 1501
野趣味
野趣味 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 11:43

    var List = new List> { 
      new KeyValuePair("Name", "John"), 
      new KeyValuePair("City" , "NY")
     };
    

提交回复
热议问题