I'm using Binary Serialization in .NET to clone objects. Any of my own classes I must mark with the <Serializable()>
attribute in order for the serializer to process the class. However since this is a function that will be used on any object, I was wondering:
Is it possible to have the serializer serialize the object even if it isn't marked with the <Serializable()>
attribute? If not, is there a way to "auto-apply" the attribute to any class?
Edit. My main concern is that I need to be able to clone POCO objects that already exist in the .NET Framework. Are all those already serializable as well?