E
E
embiid2021-07-22 00:31:17
C++ / C#
embiid, 2021-07-22 00:31:17

How to transfer the name to the dictionary?

How to form queryParams from dictionaryNames?

For example, there is a structure like this:

{
  "dic1": {
    "1": {
      ...
    },
    "2": {
      ...
    },
  "dic2":  {
    "1": {
      ...
    },
}


Service:
public Task<Response> GetDictionaries(IEnumerable<string> names)
        {
            Dictionary<string, string> keyValuePairs = new Dictionary<string, string>
            {
                { "1", "dictionaryName" },
            };


And how can I pass the name of the parameter so that I can then get the answer of that dictionary name?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s7on1250, 2021-07-22
@s7on1250

https://www.newtonsoft.com/json/help/html/Deserial...
https://stackoverflow.com/questions/1207731/how-ca...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question