Would is be possible to replace the FileStream with a memory stream to
get the byte array
>From PdbWriter
using (FileStream fs = new FileStream(m_assembly, FileMode.Open,
FileAccess.Write))
{
BinaryWriter writer = new BinaryWriter(fs);
writer.BaseStream.Position = debugDataPos;
writer.Write(DebugInfo);
}
Maybe the stream could be exposed as a property on the writer?
//Bernhard
On Apr 24, 1:47 pm, Jb Evain <[email protected]> wrote:
> On 4/24/09, seesharper <[email protected]> wrote:
>
> > The may be a variety of reason why, but it seems like I need to do
> > LoadSymbols after the GetAssembly call.
>
> > But then I need some way to retrieve the symbols byte array.
>
> Yes, you do need to call LoadSymbols after GetAssembly, and
> SaveSymbols before SaveAssembly. You'll have a pdb sitting next to the
> saved assembly that you can read.
>
> --
> Jb Evain <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
--
mono-cecil
-~----------~----~----~----~------~----~------~--~---