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

◆ CompareValueTo()

override int System.Data.Common.SByteStorage.CompareValueTo ( int recordNo,
object value )
inline

Definition at line 159 of file SByteStorage.cs.

160 {
161 if (_nullValue == value)
162 {
163 if (IsNull(recordNo))
164 {
165 return 0;
166 }
167 return 1;
168 }
169 sbyte b = _values[recordNo];
170 if (b == 0 && IsNull(recordNo))
171 {
172 return -1;
173 }
174 return b.CompareTo((sbyte)value);
175 }

References System.Data.Common.DataStorage._nullValue, System.Data.Common.SByteStorage._values, System.Xml.Dictionary, System.Data.IsNull, and System.value.