Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetHashCode()

override int System.Diagnostics.ActivityLink.GetHashCode ( )
inline

Definition at line 46 of file ActivityLink.cs.

47 {
48 HashCode hashCode = default(HashCode);
49 hashCode.Add(Context);
50 if (Tags != null)
51 {
52 foreach (KeyValuePair<string, object> tag in Tags)
53 {
54 hashCode.Add(tag.Key);
55 hashCode.Add(tag.Value);
56 }
57 }
58 return hashCode.ToHashCode();
59 }

References System.HashCode.Add(), System.Diagnostics.ActivityLink.Context, System.Diagnostics.ActivityLink.Tags, and System.HashCode.ToHashCode().