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

◆ CompareValueTo()

override int System.Data.Common.ObjectStorage.CompareValueTo ( int recordNo1,
object value )
inline

Definition at line 105 of file ObjectStorage.cs.

106 {
107 object obj = Get(recordNo1);
108 if (obj is IComparable && value.GetType() == obj.GetType())
109 {
110 return ((IComparable)obj).CompareTo(value);
111 }
112 if (obj == value)
113 {
114 return 0;
115 }
116 if (obj == null)
117 {
118 if (_nullValue == value)
119 {
120 return 0;
121 }
122 return -1;
123 }
124 if (_nullValue == value || value == null)
125 {
126 return 1;
127 }
129 }
int CompareWithFamilies(object valueNo1, object valueNo2)
override object Get(int recordNo)

References System.Data.Common.DataStorage._nullValue, System.Data.Common.ObjectStorage.CompareWithFamilies(), System.Data.Common.ObjectStorage.Get(), System.obj, and System.value.