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

◆ NamesEqual()

int System.Data.InternalDataCollectionBase.NamesEqual ( string s1,
string s2,
bool fCaseSensitive,
CultureInfo locale )
inlinepackage

Definition at line 35 of file InternalDataCollectionBase.cs.

36 {
37 if (fCaseSensitive)
38 {
39 if (string.Compare(s1, s2, ignoreCase: false, locale) != 0)
40 {
41 return 0;
42 }
43 return 1;
44 }
45 if (locale.CompareInfo.Compare(s1, s2, CompareOptions.IgnoreCase | CompareOptions.IgnoreKanaType | CompareOptions.IgnoreWidth) == 0)
46 {
47 if (string.Compare(s1, s2, ignoreCase: false, locale) != 0)
48 {
49 return -1;
50 }
51 return 1;
52 }
53 return 0;
54 }
int Compare(string? string1, string? string2)
virtual CompareInfo CompareInfo

References System.Globalization.CompareInfo.Compare(), and System.Globalization.CultureInfo.CompareInfo.

Referenced by System.Data.DataTableCollection.BaseAdd(), System.Data.DataTableCollection.Contains(), System.Data.DataTableCollection.Contains(), System.Data.DataColumnCollection.IndexOfCaseInsensitive(), System.Data.ConstraintCollection.InternalIndexOf(), System.Data.DataRelationCollection.InternalIndexOf(), System.Data.DataTableCollection.InternalIndexOf(), System.Data.DataTableCollection.InternalIndexOf(), System.Data.DataColumnCollection.RegisterColumnName(), System.Data.ConstraintCollection.RegisterName(), System.Data.DataRelationCollection.RegisterName(), System.Data.DataTableCollection.RegisterName(), System.Data.ConstraintCollection.UnregisterName(), System.Data.DataColumnCollection.UnregisterName(), System.Data.DataRelationCollection.UnregisterName(), and System.Data.DataTableCollection.UnregisterName().