I'm having some business objects which contains XElement properties. I have some offline framework which serialize / deserialize using binary formatter. I'm getting the error "Type 'System.Xml.Linq.XElement' in Assembly 'System.Xml.Linq, Version=18.104.22.168,
Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable." when i try to serialize the xelement object I'm getting the XElement serializer error. We are bit too far with design and need to find some work around to solve this issue.
The following program should give you the same error behavior.
public partial class Form1 : Form
private BinaryFormatter formatter = new BinaryFormatter();
private void btnSerialize_Clic
View Complete Post