首页 文章

asmx Web服务的限制

提问于
浏览
2

在设计ASMX Web服务时,您可以使用的类型存在某种限制(序列化/反序列化) .

谁能让我知道这些限制是什么?只需将serializable属性添加到代码中就可以绕过它吗?

1 回答

  • 4

    不 . 传统的ASMX Web服务使用 XmlSerializer 类,其中的东西是subject to the restrictions imposed by that class,其中最突出的可能是无法序列化字典 . 它不关心 [Serializable] 属性 BinaryFormatter .

相关问题