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

◆ CompareValueTo()

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

Definition at line 106 of file StringStorage.cs.

107 {
108 string text = _values[recordNo];
109 if (text == null)
110 {
111 if (_nullValue == value)
112 {
113 return 0;
114 }
115 return -1;
116 }
117 if (_nullValue == value)
118 {
119 return 1;
120 }
121 return _table.Compare(text, (string)value);
122 }
readonly DataTable _table
int Compare(string s1, string s2)

References System.Data.Common.DataStorage._nullValue, System.Data.Common.DataStorage._table, System.Data.Common.StringStorage._values, System.Data.DataTable.Compare(), System.text, and System.value.