How to Return Generic Dictionary in a WebService

后端 未结 5 1603
说谎
说谎 2020-12-09 03:08

I want a Web Service in C# that returns a Dictionary, according to a search:

Dictionary GetValues(string search) {}

The

5条回答
  •  情话喂你
    2020-12-09 03:37

    Create a type MyKeyValuePair, and return a List>, copied from the dictionary.

提交回复
热议问题