long totalSessionBytes = 0; BinaryFormatter b = new BinaryFormatter(); MemoryStream m; foreach(var obj in Session) { m = new MemoryStream(); b.Serialize(m, obj); totalSessionBytes += m.Length; }
foreach(var obj in Session) { m = new MemoryStream(); b.Serialize(m, obj); totalSessionBytes += m.Length; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)