[System.Security.SecurityCritical] // auto-generated
 #endif
 internal SymDocumentWriter(PunkSafeHandle pDocumentWriterSafeHandle)
 {
     m_pDocumentWriterSafeHandle = pDocumentWriterSafeHandle;
     // The handle is actually a pointer to a native ISymUnmanagedDocumentWriter.
     m_pDocWriter = (ISymUnmanagedDocumentWriter *)m_pDocumentWriterSafeHandle.DangerousGetHandle();
     m_vtable = (ISymUnmanagedDocumentWriterVTable)(Marshal.PtrToStructure(m_pDocWriter->m_unmanagedVTable, typeof(ISymUnmanagedDocumentWriterVTable)));
 }
Пример #2
0
 //------------------------------------------------------------------------------
 // Ctor
 //------------------------------------------------------------------------------
 internal SymDocumentWriter(PunkSafeHandle pDocumentWriterSafeHandle)
 {
     m_pDocumentWriterSafeHandle = pDocumentWriterSafeHandle;
     // The handle is actually a pointer to a native ISymUnmanagedDocumentWriter.
     m_pDocWriter = (ISymUnmanagedDocumentWriter *)m_pDocumentWriterSafeHandle.DangerousGetHandle();
     m_vtable     = (ISymUnmanagedDocumentWriterVTable)(Marshal.PtrToStructure(m_pDocWriter->m_unmanagedVTable, typeof(ISymUnmanagedDocumentWriterVTable))) !;
 }
Пример #3
0
 internal SymDocumentWriter(PunkSafeHandle pDocumentWriterSafeHandle)
 {
     m_pDocumentWriterSafeHandle = pDocumentWriterSafeHandle;
     // The handle is actually a pointer to a native ISymUnmanagedDocumentWriter.
     m_pDocWriter = (ISymUnmanagedDocumentWriter *)m_pDocumentWriterSafeHandle.DangerousGetHandle();
     m_vtable     = (ISymUnmanagedDocumentWriterVTable)(Marshal.PtrToStructure(m_pDocWriter->m_unmanagedVTable, typeof(ISymUnmanagedDocumentWriterVTable))) !; // TODO-NULLABLE: https://github.com/dotnet/roslyn/issues/34976
 }