Browse Source

LoadedAssembly.GetPEFileOrNull(): avoid unnecessary throw+catch when called on bundles.

This improves ILSpy performance when run inside the debugger.
pull/2276/head
Daniel Grunwald 4 years ago
parent
commit
687bca88f3
  1. 3
      ILSpy/LoadedAssembly.cs

3
ILSpy/LoadedAssembly.cs

@ -148,7 +148,8 @@ namespace ICSharpCode.ILSpy @@ -148,7 +148,8 @@ namespace ICSharpCode.ILSpy
{
try
{
return GetPEFileAsync().GetAwaiter().GetResult();
var loadResult = loadingTask.GetAwaiter().GetResult();
return loadResult.PEFile;
}
catch (Exception ex)
{

Loading…
Cancel
Save