VS2010 confuses System.Xml.XmlElement with System.Xml.Linq.XElement?

前端 未结 3 1228
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-10 14:50

I have created a WCF service with one method which returns a System.Xml.XmlElement:

Interface:

[ServiceContract]
public         


        
3条回答
  •  离开以前
    2020-12-10 15:43

    1) Remove the system.xml.linq reference from your client 2) Update your service reference 3) The re-generated Reference.cs file will now reference XmlElement instead of XElement

提交回复
热议问题