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

◆ Compare()

override int System.Data.Common.StringStorage.Compare ( int recordNo1,
int recordNo2 )
inline

Definition at line 87 of file StringStorage.cs.

88 {
89 string text = _values[recordNo1];
90 string text2 = _values[recordNo2];
91 if ((object)text == text2)
92 {
93 return 0;
94 }
95 if (text == null)
96 {
97 return -1;
98 }
99 if (text2 == null)
100 {
101 return 1;
102 }
103 return _table.Compare(text, text2);
104 }
readonly DataTable _table
int Compare(string s1, string s2)

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

Referenced by System.Data.Common.StringStorage.Aggregate().