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

◆ GetHashCode() [2/2]

int System.Xml.Schema.XmlSchemaInfoEqualityComparer.GetHashCode ( XmlSchemaInfo si)
inline

Definition at line 24 of file XmlSchemaInfoEqualityComparer.cs.

25 {
26 if (si == null)
27 {
28 return 0;
29 }
30 int num = (int)si.ContentType;
31 if (si.IsDefault)
32 {
33 num ^= 1;
34 }
35 if (si.IsNil)
36 {
37 num ^= 1;
38 }
39 XmlSchemaSimpleType memberType = si.MemberType;
40 if (memberType != null)
41 {
42 num ^= memberType.GetHashCode();
43 }
44 XmlSchemaAttribute schemaAttribute = si.SchemaAttribute;
45 if (schemaAttribute != null)
46 {
47 num ^= schemaAttribute.GetHashCode();
48 }
49 XmlSchemaElement schemaElement = si.SchemaElement;
50 if (schemaElement != null)
51 {
52 num ^= schemaElement.GetHashCode();
53 }
54 XmlSchemaType schemaType = si.SchemaType;
55 if (schemaType != null)
56 {
57 num ^= schemaType.GetHashCode();
58 }
59 return num ^ (int)si.Validity;
60 }