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
//sa.AttributeType.WriteTo(output, ILNameSyntax.TypeName); //sa.AttributeType.WriteTo(output, ILNameSyntax.TypeName);
} }
output.Write(" = {"); output.Write(" = {");
blob.ReadByte(); blob.ReadCompressedInteger(); // ?
int argCount = blob.ReadByte(); // The specification seems to be incorrect here, so I'm using the logic from Cecil instead.
int argCount = blob.ReadCompressedInteger();
if (argCount > 0) { if (argCount > 0) {
output.WriteLine(); output.WriteLine();
output.Indent(); output.Indent();

Loading…
Cancel
Save