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:
parent
17255fad14
commit
4f54570dbf
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue