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

◆ AreFieldValuesEqual()

static bool System.Attribute.AreFieldValuesEqual ( object thisValue,
object thatValue )
inlinestaticprivateinherited

Definition at line 748 of file Attribute.cs.

749 {
750 if (thisValue == null && thatValue == null)
751 {
752 return true;
753 }
754 if (thisValue == null || thatValue == null)
755 {
756 return false;
757 }
758 Type type = thisValue.GetType();
759 if (type.IsArray)
760 {
761 if (!type.Equals(thatValue.GetType()))
762 {
763 return false;
764 }
767 if (array.Length != array2.Length)
768 {
769 return false;
770 }
771 for (int i = 0; i < array.Length; i++)
772 {
773 if (!AreFieldValuesEqual(array.GetValue(i), array2.GetValue(i)))
774 {
775 return false;
776 }
777 }
778 }
779 else if (!thisValue.Equals(thatValue))
780 {
781 return false;
782 }
783 return true;
784 }
static bool AreFieldValuesEqual(object thisValue, object thatValue)
Definition Attribute.cs:748

References System.Attribute.AreFieldValuesEqual(), System.array, System.Reflection.Array, and System.type.

Referenced by System.Attribute.AreFieldValuesEqual(), and System.Attribute.Equals().