Skip to content

Commit 594b9f8

Browse files
committed
Output the additional attribute first.
1 parent 1f3fad1 commit 594b9f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ReClass.NET/CodeGenerator/CSharpCodeGenerator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,12 @@ private static void WriteClass(IndentedTextWriter writer, ClassNode @class, ILog
174174
var (type, attribute) = GetTypeDefinition(node);
175175
if (type != null)
176176
{
177-
writer.WriteLine($"[FieldOffset(0x{node.Offset:X})]");
178177
if (attribute != null)
179178
{
180179
writer.WriteLine(attribute);
181180
}
181+
182+
writer.WriteLine($"[FieldOffset(0x{node.Offset:X})]");
182183
writer.Write($"public readonly {type} {node.Name};");
183184
if (!string.IsNullOrEmpty(node.Comment))
184185
{

0 commit comments

Comments
 (0)