0
Я использую C#.Попытка определить WebMethod со словарем как параметры
Я пытаюсь создать веб-метод в моем файле .asmx как следующие:
[WebMethod]
public string MyWebMethod(Dictionary<string, string> parameters)
{
//...
}
И я получил следующее исключение:
The type System.Collections.Generic.Dictionary`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] is not supported because it implements IDictionary.
Как я могу это исправить?
Спасибо.