mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +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)
|
if (field.IsStatic)
|
||||||
continue;
|
continue;
|
||||||
if (fieldCount == 0)
|
if (fieldCount == 0)
|
||||||
code.AppendF($"\thash = SelfOuter.Get(value.[Friend]{field.Name});\n");
|
code.AppendF($"\thash = SelfOuter.Get(value.");
|
||||||
else
|
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;
|
++fieldCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue