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

◆ ContentsHashCode()

int System.Xml.Linq.XContainer.ContentsHashCode ( )
inlinepackageinherited

Definition at line 971 of file XContainer.cs.

972 {
973 string textOnly = GetTextOnly();
974 if (textOnly != null)
975 {
976 return textOnly.GetHashCode();
977 }
978 int num = 0;
980 if (n != null)
981 {
982 do
983 {
984 n = n.next;
985 string text = CollectText(ref n);
986 if (text.Length > 0)
987 {
988 num ^= text.GetHashCode();
989 }
990 if (n == null)
991 {
992 break;
993 }
994 num ^= n.GetDeepHashCode();
995 }
996 while (n != content);
997 }
998 return num;
999 }
string CollectText(ref XNode n)

References System.Xml.Linq.XNode.XNode(), System.Xml.Linq.XContainer.CollectText(), System.Xml.Linq.XContainer.content, System.Xml.Linq.XContainer.GetTextOnly(), and System.text.

Referenced by System.Xml.Linq.XDocument.GetDeepHashCode(), and System.Xml.Linq.XElement.GetDeepHashCode().