Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Not marked as Serializable ....?
Santhosh Subramaniam
Dec 10 2014 1:35 AM
791
Reply
Hi Frnds,
I am taking backup of object my using Serialize method , here i am getting error not marked as
Serializable
but every thing is marked as Serializable
,
I want to take a backup of object any other method is there please tell me.
using (MemoryStream ms = new MemoryStream())
{
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(ms, MyObj); // -- Error
ms.Position = 0;
MyObjBackup = (MyClass)bf.Deserialize(ms);
}
Thanks in Advance.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
i am new in wcf . pl. guid me in details
Read message queue sending by service contracts