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

◆ CompareValueTo() [2/2]

bool System.Data.DataColumn.CompareValueTo ( int record1,
object value,
bool checkType )
inlinepackage

Definition at line 1326 of file DataColumn.cs.

1327 {
1328 if (CompareValueTo(record1, value) == 0)
1329 {
1330 Type type = value.GetType();
1331 Type type2 = _storage.Get(record1).GetType();
1332 if (type == typeof(string) && type2 == typeof(string))
1333 {
1334 if (string.CompareOrdinal((string)_storage.Get(record1), (string)value) != 0)
1335 {
1336 return false;
1337 }
1338 return true;
1339 }
1340 if (type == type2)
1341 {
1342 return true;
1343 }
1344 }
1345 return false;
1346 }
object Get(int recordNo)
bool CompareValueTo(int record1, object value, bool checkType)

References System.Data.DataColumn._storage, System.Data.DataColumn.CompareValueTo(), System.Xml.Dictionary, System.Data.Common.DataStorage.Get(), System.Type.GetType(), System.type, and System.value.

Referenced by System.Data.ForeignKeyConstraint.CheckConstraint(), System.Data.Index.CompareRecordToKey(), and System.Data.DataColumn.CompareValueTo().