unable serialize ability control


background



i am perplexing emanate duplicate business vigilant i have combined vb.net. i have implemented icloneable interface reflection function, i emanate duplicate vigilant serializing binaryformatter following de-serializing loyal behind out another vigilant i relapse function.



the category i am perplexing serialize noted "serializable" along child objects contained within class.



i have tested reflection slight works minute formula identical following:



dim obj new sheep()
dim barrow sheep = obj.clone()


all works glorious during point.



problem



i have tradition windows forms control inherits 3rd jubilee control. tradition control fundamentally contains vigilant i wish reflection (as vigilant ultimatly feeds 3rd jubilee control).



i wish emanate reflection vigilant within windows form control i grant user manipulate properties while carrying choice cancelling changes reverting vigilant behind before finished changes. i take duplicate vigilant before user starts origination changes reason onto i have prepared press cancel.



my guess formula along lines following:



dim duplicate sheep = mycontrol.sheep.clone()


then grant user manipulate properties mycontrol.sheep. i try however, reflection slight throws an difference stating:



type 'mycontrol' public 'my_assembly_info_here' noted serializable



this blunder thrown during indicate where i binaryformatter.serialize(stream,me).



i have attempted formulating slight mycontrol advantage duplicate vigilant also initial assigning mycontrol.sheep another non-static following cloning non-static nonetheless zero seems work. however, formulating new instance vigilant directly cloning works fine!



any idea's where i am going wrong?



solution



marc's answer helped indicate me right instruction one. blog post hilly lhotka explains problem solve it.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

unable interpret unicode character