You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private static int MyMethod()
{
int num = 0;
while (num == 0)
{
num++;
}
if (num == 0)
return -1;
return num;
}
Error decompiling ConsoleApp17.Program.MyMethod
---> ICSharpCode.ILSpy.AssertionFailedException:
at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message, String detailMessage) in offset 380
at ICSharpCode.ILSpy.ILSpyTraceListener.Fail(String message) in offset 9
at System.Diagnostics.TraceInternal.Fail(String message) in offset 55
at System.Diagnostics.Debug.Assert(Boolean condition) in offset 6
at ICSharpCode.Decompiler.IL.ControlFlow.SwitchDetection.AnalyzeControlFlow() in offset 387
at ICSharpCode.Decompiler.IL.ControlFlow.SwitchDetection.UseCSharpSwitch(KeyValuePair`2& defaultSection) in offset 324
at ICSharpCode.Decompiler.IL.ControlFlow.SwitchDetection.ProcessBlock(Block block, Boolean& blockContainerNeedsCleanup) in offset 17
at ICSharpCode.Decompiler.IL.ControlFlow.SwitchDetection.Run(ILFunction function, ILTransformContext context) in offset 106
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 581
-- continuing with outer exception (ICSharpCode.Decompiler.DecompilerException) --
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DecompileBody(IMethod method, EntityDeclaration entityDecl, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 1058
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(IMethod method, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 249
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.DoDecompile(ITypeDefinition typeDef, DecompileRun decompileRun, ITypeResolveContext decompilationContext) in offset 746
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.Decompile(IList`1 definitions) in offset 304
at ICSharpCode.Decompiler.CSharp.CSharpDecompiler.Decompile(EntityHandle[] definitions) in offset 1
at ICSharpCode.ILSpy.CSharpLanguage.DecompileType(ITypeDefinition type, ITextOutput output, DecompilationOptions options) in offset 79
at ICSharpCode.ILSpy.TreeNodes.TypeTreeNode.Decompile(Language language, ITextOutput output, DecompilationOptions options) in offset 15
at ICSharpCode.ILSpy.TextView.DecompilerTextView.DecompileNodes(DecompilationContext context, ITextOutput textOutput) in offset 69
at ICSharpCode.ILSpy.TextView.DecompilerTextView.<>c__DisplayClass34_0.<DecompileAsync>b__0() in offset 38
The text was updated successfully, but these errors were encountered:
Code
The text was updated successfully, but these errors were encountered: