Message 1 of 3
Binary serialization

Not applicable
01-28-2017
05:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everybody,
I am trying to serialize in binaray way a Parameter in a files, not in .RVT file. However, it does not work on. The code is very simple
using (Stream stream = File.Open(dialog.FileName, FileMode.Open))
{
BinaryFormatter bin = new BinaryFormatter();
bin.Serialize(stream, parameter);
stream.Close();
}
where parameter is an instance of Parameter class. Now I am using instance of Parameter class, but later, I will serialize other class of the API, for example Element, Level, Phase,..
Any could help please?
Javi