V
V&G
There is many topics about the subj but no one answering the
question...
Is there any way to serialize an assembly?
The case of reading from disk as stream seems like bad solution because
there are problems to process such assembly (see
http://groups.google.com/group/microsoft.public.dotnet.framework/browse_frm/thread/6dff95d4ea9b6671)
No, I'm looking for the way to serialize an assembly as we generaly
serialize other serializable objects. In case of assembly after
serialization I get only the buffer with metadata...
Here is code example:
Byte[] buf;
Assembly asm = Assembly.LoadFrom(path);
using (MemoryStream ms = new MemoryStream())
{
BinaryFormatter format = new BinaryFormatter();
format.Serialize(ms, asm);
buf = ms.ToArray();
}
question...
Is there any way to serialize an assembly?
The case of reading from disk as stream seems like bad solution because
there are problems to process such assembly (see
http://groups.google.com/group/microsoft.public.dotnet.framework/browse_frm/thread/6dff95d4ea9b6671)
No, I'm looking for the way to serialize an assembly as we generaly
serialize other serializable objects. In case of assembly after
serialization I get only the buffer with metadata...
Here is code example:
Byte[] buf;
Assembly asm = Assembly.LoadFrom(path);
using (MemoryStream ms = new MemoryStream())
{
BinaryFormatter format = new BinaryFormatter();
format.Serialize(ms, asm);
buf = ms.ToArray();
}