diff --git a/ICSharpCode.Decompiler/CodeMappings.cs b/ICSharpCode.Decompiler/CodeMappings.cs index 58b9768b6..d5535a900 100644 --- a/ICSharpCode.Decompiler/CodeMappings.cs +++ b/ICSharpCode.Decompiler/CodeMappings.cs @@ -38,7 +38,7 @@ namespace ICSharpCode.Decompiler { int[] result = new int[2]; result[0] = ILInstructionOffset.From; - result[1] = ILInstructionOffset.From + 1 == ILInstructionOffset.To ? ILInstructionOffset.To : ILInstructionOffset.To + 1; + result[1] = ILInstructionOffset.To; return result; } @@ -183,7 +183,6 @@ namespace ICSharpCode.Decompiler var mapping = codeMappings[typename].Find(m => m.MetadataToken == token); if (mapping == null) continue; - var codeMapping = mapping.MemberCodeMappings.Find( cm => cm.ILInstructionOffset.From <= ilOffset && ilOffset <= cm.ILInstructionOffset.To - 1); if (codeMapping == null) { @@ -195,7 +194,6 @@ namespace ICSharpCode.Decompiler } } - type = mapping.Type; line = codeMapping.SourceCodeLine; return true;