src/ToolBox/SOS/NETCore/SymbolReader.cs
/// <summary>
/// Cleanup and dispose of symbol reader handle
/// </summary>
/// <param name="symbolReaderHandle">symbol reader handle returned by LoadSymbolsForModule</param>
Cleanup and dispose of symbol reader handle
Cleanup and dispose of symbol reader handle
internal static void Dispose(IntPtr symbolReaderHandle)
        {
            Debug.Assert(symbolReaderHandle != IntPtr.Zero);
            try
            {
                GCHandle gch = GCHandle.FromIntPtr(symbolReaderHandle);
                ((OpenedReader)gch.Target).Dispose();
                gch.Free();
            }
            catch
            {
            }
        }
internal static void Dispose ( IntPtr symbolReaderHandle ) { Debug . Assert ( symbolReaderHandle != IntPtr . Zero ) ; try { GCHandle gch = GCHandle . FromIntPtr ( symbolReaderHandle ) ; ( ( OpenedReader ) gch . Target ) . Dispose ( ) ; gch . Free ( ) ; } catch { } }
Cleanup and dispose of symbol reader handle
Cleanup and dispose of symbol reader handle
symbolReaderHandle
IntPtr
symbol reader handle returned by LoadSymbolsForModule
symbol reader handle returned by LoadSymbolsForModule