Browse Source

Add hack for namedarg count parsing in DeclarativeSecurityAttributes

pull/1198/head
Siegfried Pammer 8 years ago
parent
commit
d4b91577c9
  1. 5
      ICSharpCode.Decompiler/Disassembler/ReflectionDisassembler.cs

5
ICSharpCode.Decompiler/Disassembler/ReflectionDisassembler.cs

@ -346,8 +346,9 @@ namespace ICSharpCode.Decompiler.Disassembler @@ -346,8 +346,9 @@ namespace ICSharpCode.Decompiler.Disassembler
//sa.AttributeType.WriteTo(output, ILNameSyntax.TypeName);
}
output.Write(" = {");
blob.ReadByte();
int argCount = blob.ReadByte();
blob.ReadCompressedInteger(); // ?
// The specification seems to be incorrect here, so I'm using the logic from Cecil instead.
int argCount = blob.ReadCompressedInteger();
if (argCount > 0) {
output.WriteLine();
output.Indent();

Loading…
Cancel
Save