Is the datatype XElement serialiable RRS feed

  • Question

  • Can I send an object of type XElement across a web service - i.e. mark it DataContract and send it across a service?
    Monday, September 21, 2009 3:26 PM


  • Yes, XElement can be serialized by WCF/DataContractSerializer. The attribute to be applied to a member of that type is DataMemberAttribute.
    MVP XML My blog
    • Marked as answer by Zhipeng Lee Monday, September 28, 2009 1:22 AM
    Monday, September 21, 2009 3:57 PM