Skip to content

Commit 0c23062

Browse files
authored
Correct flag to flags
1 parent aff9649 commit 0c23062

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ICSharpCode.Decompiler/Disassembler/ReflectionDisassembler.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ void WriteFlags<T>(T flags, EnumNameCollection<T> flagNames) where T : struct
18861886
}
18871887
}
18881888
if ((val & ~tested) != 0)
1889-
output.Write("flag({0:x4}) ", val & ~tested);
1889+
output.Write("flags({0:x4}) ", val & ~tested);
18901890
}
18911891

18921892
void WriteEnum<T>(T enumValue, EnumNameCollection<T> enumNames) where T : struct
@@ -1906,8 +1906,7 @@ void WriteEnum<T>(T enumValue, EnumNameCollection<T> enumNames) where T : struct
19061906
}
19071907
if (val != 0)
19081908
{
1909-
output.Write("flag({0:x4})", val);
1910-
output.Write(' ');
1909+
output.Write("flags({0:x4}) ", val);
19111910
}
19121911

19131912
}
@@ -2107,4 +2106,4 @@ public void WriteModuleContents(MetadataFile module)
21072106
}
21082107
}
21092108
}
2110-
}
2109+
}

0 commit comments

Comments
 (0)