Skip il that can't be interpreted
This commit is contained in:
parent
4f2a8602e9
commit
9945e82cb7
@ -11,7 +11,7 @@
|
|||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<IncludeSymbols>true</IncludeSymbols>
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
<IncludeSource>true</IncludeSource>
|
<IncludeSource>true</IncludeSource>
|
||||||
<Version>0.0.5</Version>
|
<Version>0.0.6</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@ -335,9 +335,10 @@ namespace System.Diagnostics
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
var rawIL = methodBody?.GetILAsByteArray();
|
var rawIL = methodBody?.GetILAsByteArray();
|
||||||
if (rawIL == null) continue;
|
if (rawIL == null) continue;
|
||||||
|
|
||||||
var reader = new ILReader(rawIL);
|
var reader = new ILReader(rawIL);
|
||||||
while (reader.Read(candidateMethod))
|
while (reader.Read(candidateMethod))
|
||||||
{
|
{
|
||||||
@ -357,6 +358,12 @@ namespace System.Diagnostics
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// https://github.com/benaadams/Ben.Demystifier/issues/32
|
||||||
|
// Skip methods where il can't be interpreted
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user