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

◆ CompareValueTo()

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

Definition at line 71 of file SqlUdtStorage.cs.

72 {
73 if (DBNull.Value == value)
74 {
76 }
78 {
79 IComparable comparable = (IComparable)_values[recordNo1];
80 return comparable.CompareTo(value);
81 }
82 if (_nullValue == value)
83 {
85 if (!nullable.IsNull)
86 {
87 return 1;
88 }
89 return 0;
90 }
91 throw ExceptionBuilder.IComparableNotImplemented(_dataType.AssemblyQualifiedName);
92 }
string? AssemblyQualifiedName
Definition Type.cs:45

References System.Data.Common.DataStorage._dataType, System.Data.Common.SqlUdtStorage._implementsIComparable, System.Data.Common.DataStorage._nullValue, System.Data.Common.SqlUdtStorage._values, System.Type.AssemblyQualifiedName, System.comparable, System.Xml.Dictionary, System.Data.ExceptionBuilder.IComparableNotImplemented(), System.DBNull.Value, and System.value.

Referenced by System.Data.Common.SqlUdtStorage.Compare().