使用 ASP.NET WebServices,默认情况下您不能传递任何 IDictionary 对象,因为不支持 IDictionaries 的 xml 序列化。我找到了各种序列化字典的方法(http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx,http://blogs.msdn.com/psheill/archive/2005/04 /09/406823.aspx , http://www.mattberther.com/2004/06/14/serializing-an-idictionary-object/)但是,我找不到任何方法可以将它连接到 Asp.NET 网络中方法。
有没有办法将它连接起来,以便我可以将 IDictionaries 与 WebMethods 一起使用?