public void Initialize(IntPtr emitter, string filename, bool fullBuild)
{
COMException Exception;
int hr;
// Demand the permission to access unmanaged code. We do this since we are casting an int to a COM interface, and
// this can be used improperly.
(new SecurityPermission(SecurityPermissionFlag.UnmanagedCode)).Demand();
hr = SymWriter_Initialize(m_Writer, emitter, filename, fullBuild);
if (hr < 0)
{
Exception = new COMException("Call to Initialize failed.", hr);
throw Exception;
}
}