Extending the Serializer from NetDataContractSerializer / BinaryFormatterWrapper to the XMLFormatterWrapper

Extending the Serializer from NetDataContractSerializer / BinaryFormatterWrapper to the XMLFormatterWrapper

Old forum URL: forums.lhotka.net/forums/t/5732.aspx


AKaplan posted on Tuesday, November 04, 2008

Is it possible to extend the current Serializer to be able to handle XML / NameValueCollection in csla 3.5 ? I was able to do some but I dont understand the the GetProperties / SetProperties generics structure. Can someone help me?

RockfordLhotka replied on Wednesday, November 05, 2008

To create your "XmlFormatterWrapper" you want to use something like the XmlSerializer?

The XmlSerializer (and the DataContractSerializer) are incapable of expressing .NET types in a rich enough way to work with CSLA. This is why Microsoft has BinaryFormatter and NDCS - because they are capable of expressing these .NET types.

AKaplan replied on Wednesday, November 05, 2008

OH YEA!! totally forgot about reading that..

Copyright (c) Marimer LLC