Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi all!!!
Can I make next?:
I want to mark some object as serializable. But I know this object was created from non-serializable class!
Any assumption, please...
thx
Posted

If you have the source code mark the class with the [serializable] class as shown here.
 
Share this answer
 
I know that, but I have no source code. I just have only object.
 
Share this answer
 
Maybe, I can use something like this?:

SerializableAttribute sa = new SerializableAttribute();
AttributeCollection ac = new AttributeCollection(sa);
TypeDescriptor.AddAttributes(ac); :confused:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900