Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Ben.Demystifier/Internal/PortablePdbReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ namespace System.Diagnostics.Internal
// Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.StackTrace.Sources/StackFrame/PortablePdbReader.cs
#if NET6_0_OR_GREATER
[RequiresUnreferencedCode(Constants.TrimWarning)]
#endif
#endif
// Allow direct file system usage
#pragma warning disable SN0001
internal class PortablePdbReader : IDisposable
{
private readonly Dictionary<string, MetadataReaderProvider> _cache =
Expand Down Expand Up @@ -145,4 +147,5 @@ public void Dispose()
_cache.Clear();
}
}
#pragma warning restore SN0001
}