N
news.microsoft.com
I need a quick way to binary serialize an ArrayList of System.Drawing.Point
objects. There are a lot of point is this list so I am trying to avoid
iterating over them. I have tried the following but cannot find an easy way
to Deserialize the data. Can anyone suggest a better way?
Array ptArray = _allLines.ToArray(typeof(System.Drawing.Point));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(ms,ptArray);
return ms.GetBuffer();
objects. There are a lot of point is this list so I am trying to avoid
iterating over them. I have tried the following but cannot find an easy way
to Deserialize the data. Can anyone suggest a better way?
Array ptArray = _allLines.ToArray(typeof(System.Drawing.Point));
System.IO.MemoryStream ms = new System.IO.MemoryStream();
BinaryFormatter formatter = new BinaryFormatter();
formatter.Serialize(ms,ptArray);
return ms.GetBuffer();