public static ISymUnmanagedDocumentWriter DefineDocument(this ISymUnmanagedWriter instance, IntPtr url, ref Guid language, ref Guid languageVendor, ref Guid documentType) { ISymUnmanagedDocumentWriter returnValue = instance.__DefineDocument(url, ref language, ref languageVendor, ref documentType); ProcessOutParameter(returnValue); return(returnValue); }
public SymWriter () { object objWriter; CoCreateInstance (ref s_CorSymWriter_SxS_ClassID, null, 1, ref s_symUnmangedWriterIID, out objWriter); m_writer = (ISymUnmanagedWriter)objWriter; }
public SymWriter() { object objWriter; CoCreateInstance(ref s_CorSymWriter_SxS_ClassID, null, 1, ref s_symUnmangedWriterIID, out objWriter); m_writer = (ISymUnmanagedWriter)objWriter; }
/// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SymbolWriter"]/*' /> public SymbolWriter() { // Create the writer from the COM catalog Type writerType = Type.GetTypeFromCLSID(CLSID_CorSymWriter); object comWriterObj = Activator.CreateInstance(writerType); m_target = (ISymUnmanagedWriter)comWriterObj; }
public SymbolWriter(ISymUnmanagedWriter unmanaged) { if (unmanaged == null) { throw new ArgumentNullException("unmanaged"); } _unmanaged = unmanaged; }
/// <summary> /// Constructor which allows the underlying COM object to be customized /// </summary> /// <param name="comWriterObject"></param> /// <remarks>This would ideally be protected AND internal, but C# can only express protected OR internal</remarks> internal SymbolWriter(ISymUnmanagedWriter comWriterObject) { // We should not wrap null instances if (comWriterObject == null) { throw new ArgumentNullException("comWriterObject"); } m_target = comWriterObject; }
public void Dispose() { // If the underlying symbol API supports the Destroy method, then call it. ISymUnmanagedDispose disposer = m_target as ISymUnmanagedDispose; if (disposer != null) { disposer.Destroy(); } m_target = null; }
public static void Initialize2(this ISymUnmanagedWriter instance, object emitter, IntPtr tempfilename, IStream pIStream, int fFullBuild, IntPtr finalfilename) { instance.__Initialize2(emitter, tempfilename, pIStream, fFullBuild, finalfilename); }
public static void DefineSequencePoints(this ISymUnmanagedWriter instance, ISymUnmanagedDocumentWriter document, uint spCount, ref uint offsets, ref uint lines, ref uint columns, ref uint endLines, ref uint endColumns) { instance.__DefineSequencePoints(document, spCount, ref offsets, ref lines, ref columns, ref endLines, ref endColumns); }
public static void RemapToken(this ISymUnmanagedWriter instance, uint oldToken, uint newToken) { instance.__RemapToken(oldToken, newToken); }
public static void CloseMethod(this ISymUnmanagedWriter instance) { instance.__CloseMethod(); }
public static void GetDebugInfo(this ISymUnmanagedWriter instance, ref uint pIDD, uint cData, out uint pcData, IntPtr data) { instance.__GetDebugInfo(ref pIDD, cData, out pcData, data); }
public void SetUnderlyingWriter(IntPtr underlyingWriter) { _unmanaged = (ISymUnmanagedWriter)Marshal.GetObjectForIUnknown(underlyingWriter); }
/// <summary> /// Constructor which allows the underlying COM object to be customized /// </summary> /// <param name="comWriterObject"></param> /// <remarks>This would ideally be protected AND internal, but C# can only express protected OR internal</remarks> internal SymbolWriter(ISymUnmanagedWriter comWriterObject) { // We should not wrap null instances if (comWriterObject == null) throw new ArgumentNullException("comWriterObject"); m_target = comWriterObject; }
public static void SetUserEntryPoint(this ISymUnmanagedWriter instance, uint entryMethod) { instance.__SetUserEntryPoint(entryMethod); }
/// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SymbolWriter"]/*' /> public SymbolWriter() { Guid CLSID_CorSymWriter = new Guid("0AE2DEB0-F901-478b-BB9F-881EE8066788"); m_target = (ISymUnmanagedWriter)Activator.CreateInstance(Type.GetTypeFromCLSID(CLSID_CorSymWriter)); }
public static void DefineParameter(this ISymUnmanagedWriter instance, IntPtr name, uint attributes, uint sequence, uint addrKind, uint addr1, uint addr2, uint addr3) { instance.__DefineParameter(name, attributes, sequence, addrKind, addr1, addr2, addr3); }
public static void DefineGlobalVariable(this ISymUnmanagedWriter instance, IntPtr name, uint attributes, uint cSig, ref byte signature, uint addrKind, uint addr1, uint addr2, uint addr3) { instance.__DefineGlobalVariable(name, attributes, cSig, ref signature, addrKind, addr1, addr2, addr3); ProcessOutParameter(signature); }
public static void SetScopeRange(this ISymUnmanagedWriter instance, uint scopeID, uint startOffset, uint endOffset) { instance.__SetScopeRange(scopeID, startOffset, endOffset); }
public static void CloseScope(this ISymUnmanagedWriter instance, uint endOffset) { instance.__CloseScope(endOffset); }
public static uint OpenScope(this ISymUnmanagedWriter instance, uint startOffset) { return(instance.__OpenScope(startOffset)); }
public static void DefineConstant(this ISymUnmanagedWriter instance, IntPtr name, object value, uint cSig, ref byte signature) { instance.__DefineConstant(name, value, cSig, ref signature); ProcessOutParameter(signature); }
/// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SetUnderlyingWriter"]/*' /> public void SetUnderlyingWriter(Object ppUnderlyingWriter) { m_target = (ISymUnmanagedWriter)ppUnderlyingWriter; }
public static void Abort(this ISymUnmanagedWriter instance) { instance.__Abort(); }
public static void DefineField(this ISymUnmanagedWriter instance, uint parent, IntPtr name, uint attributes, uint cSig, ref byte signature, uint addrKind, uint addr1, uint addr2, uint addr3) { instance.__DefineField(parent, name, attributes, cSig, ref signature, addrKind, addr1, addr2, addr3); }
public void Dispose() { // If the underlying symbol API supports the Destroy method, then call it. ISymUnmanagedDispose disposer = m_target as ISymUnmanagedDispose; if (disposer != null) disposer.Destroy(); m_target = null; }
public static void SetSymAttribute(this ISymUnmanagedWriter instance, uint parent, IntPtr name, uint cData, ref byte data) { instance.__SetSymAttribute(parent, name, cData, ref data); ProcessOutParameter(data); }
public static void OpenMethod(this ISymUnmanagedWriter instance, uint method) { instance.__OpenMethod(method); }
public static void OpenNamespace(this ISymUnmanagedWriter instance, IntPtr name) { instance.__OpenNamespace(name); }
/// <include file='doc\SymWriter.uex' path='docs/doc[@for="SymbolWriter.SetUnderlyingWriter"]/*' /> public void SetUnderlyingWriter(IntPtr ppUnderlyingWriter) { m_target = GetWriter(ppUnderlyingWriter); }
public static void CloseNamespace(this ISymUnmanagedWriter instance) { instance.__CloseNamespace(); }
public static void UsingNamespace(this ISymUnmanagedWriter instance, IntPtr fullName) { instance.__UsingNamespace(fullName); }
public static void SetMethodSourceRange(this ISymUnmanagedWriter instance, ISymUnmanagedDocumentWriter startDoc, uint startLine, uint startColumn, ISymUnmanagedDocumentWriter endDoc, uint endLine, uint endColumn) { instance.__SetMethodSourceRange(startDoc, startLine, startColumn, endDoc, endLine, endColumn); }