Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Can anyone tell me how to use Salar Bois serialization to disk? I want to do the right thing since I'm optimizing both by size and time. Specifically I had to serialize a List lp;

All what I find on the site is:

How to serialize an object:

C#
var boisSerializer = new BoisSerializer();
using (var mem = new MemoryStream())
{
    boisSerializer.Serialize(this, mem);
    return mem.ToArray();
}


How to deserialize an object:

C#
var boisSerializer = new BoisSerializer();
return boisSerializer.Deserialize<SampleObject>(dataStream);


Thanks Patrick
Posted
Updated 6-Oct-15 5:32am
v2

1 solution

 
Share this answer
 
Comments
Patrick70__ 6-Oct-15 11:34am    
Yes thanx to both

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