MCPcopy Create free account
hub / github.com/apache/fory / GetHashCode

Method GetHashCode

csharp/src/Fory/TypeMeta.cs:1160–1176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1158 }
1159
1160 public override int GetHashCode()
1161 {
1162 HashCode hc = new();
1163 hc.Add(TypeId);
1164 hc.Add(UserTypeId);
1165 hc.Add(NamespaceName);
1166 hc.Add(TypeName);
1167 hc.Add(RegisterByName);
1168 hc.Add(Compressed);
1169 hc.Add(HeaderHash);
1170 foreach (TypeMetaFieldInfo f in Fields)
1171 {
1172 hc.Add(f);
1173 }
1174
1175 return hc.ToHashCode();
1176 }
1177
1178}

Callers

nothing calls this directly

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected