1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed HashCode tuples

This commit is contained in:
Brian Fiete 2023-11-18 07:53:23 -05:00
parent 17255fad14
commit 4f54570dbf

View file

@ -91,9 +91,12 @@ static class HashCode
if (field.IsStatic)
continue;
if (fieldCount == 0)
code.AppendF($"\thash = SelfOuter.Get(value.[Friend]{field.Name});\n");
code.AppendF($"\thash = SelfOuter.Get(value.");
else
code.AppendF($"\thash = Mix(hash, value.[Friend]{field.Name});\n");
code.AppendF($"\thash = Mix(hash, value.");
if (!field.IsPublic)
code.Append("[Friend]");
code.AppendF($"{field.Name});\n");
++fieldCount;
}
}