Skip to content
Permalink
Browse files

Fix #1480: InvalidOperationException in PortablePdbWriter.

  • Loading branch information...
siegfriedpammer committed Apr 11, 2019
1 parent 3abb548 commit 46ba4fc66af2040bbdad6b2d4aa6e4bbb2d5edc4
Showing with 3 additions and 3 deletions.
  1. +3 −3 ICSharpCode.Decompiler/DebugInfo/PortablePdbWriter.cs
@@ -135,15 +135,15 @@ public static void WritePdb(PEFile file, CSharpDecompiler decompiler, Decompiler
}
}

stateMachineMethods.SortBy(row => row.MoveNextMethod);
stateMachineMethods.SortBy(row => MetadataTokens.GetRowNumber(row.MoveNextMethod));
foreach (var row in stateMachineMethods) {
metadata.AddStateMachineMethod(row.MoveNextMethod, row.KickoffMethod);
}
customMethodDebugInfo.SortBy(row => row.Parent);
customMethodDebugInfo.SortBy(row => MetadataTokens.GetRowNumber(row.Parent));
foreach (var row in customMethodDebugInfo) {
metadata.AddCustomDebugInformation(row.Parent, row.Guid, row.Blob);
}
customDocumentDebugInfo.SortBy(row => row.Parent);
customDocumentDebugInfo.SortBy(row => MetadataTokens.GetRowNumber(row.Parent));
foreach (var row in customDocumentDebugInfo) {
metadata.AddCustomDebugInformation(row.Parent, row.Guid, row.Blob);
}

0 comments on commit 46ba4fc

Please sign in to comment.
You can’t perform that action at this time.