72 references to Compare
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (2)
34
If String.
Compare
(Value, Boolean.FalseString, True, loc) = 0 Then
36
ElseIf String.
Compare
(Value, Boolean.TrueString, True, loc) = 0 Then
PresentationFramework (2)
System\Windows\Controls\TextSearch.cs (1)
202
if (_charsEntered.Count > 0 && string.
Compare
(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo)) == 0)
System\Windows\Documents\Speller.cs (1)
236
if (string.
Compare
(word, error, ignoreCase: true, _defaultCulture) == 0)
PresentationFramework-SystemXml (1)
XmlNodeComparer.cs (1)
49
result = String.
Compare
(valueX, valueY, false, _culture);
System.ComponentModel.TypeConverter (2)
System\ComponentModel\Design\DesignerOptionService.cs (1)
232
if (string.
Compare
(child.Name, name, true, CultureInfo.InvariantCulture) == 0)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
954
string.
Compare
(e.PropertyName, Name, true, CultureInfo.InvariantCulture) == 0)
System.Data.Common (18)
System\Data\BaseCollection.cs (2)
41
return string.
Compare
(s1, s2, false, locale) == 0 ? 1 : 0;
47
return string.
Compare
(s1, s2, false, locale) == 0 ? 1 : -1;
System\Data\Constraint.cs (2)
43
if (string.
Compare
(_name, value, true, locale) != 0)
53
else if (string.
Compare
(_name, value, false, locale) != 0)
System\Data\DataColumn.cs (2)
323
if (_caption == null || string.
Compare
(_caption, value, true, Locale) != 0)
363
if (string.
Compare
(_columnName, value, true, Locale) != 0)
System\Data\DataRelation.cs (4)
365
if (string.
Compare
(_relationName, value, true, locale) != 0)
384
else if (string.
Compare
(_relationName, value, false, locale) != 0)
423
if (string.
Compare
(ChildTable.TableName, ChildTable.DataSet!.DataSetName, true, ChildTable.DataSet.Locale) == 0)
517
if (ChildTable.DataSet != null && (string.
Compare
(ChildTable.TableName, ChildTable.DataSet.DataSetName, true, ChildTable.DataSet.Locale) == 0))
System\Data\DataTable.cs (3)
1781
if (string.
Compare
(_tableName, value, true, currentLocale) != 0)
1789
if ((0 == string.
Compare
(value, _dataSet.DataSetName, true, _dataSet.Locale)) && !_fNestedInDataset)
1827
else if (string.
Compare
(_tableName, value, false, currentLocale) != 0)
System\Data\DataView.cs (2)
324
if (null == _rowFilter || (string.
Compare
(RowFilter, value, false, locale) != 0))
437
if (string.
Compare
(_sort, value, false, locale) != 0 || (null != _comparison))
System\Data\Merger.cs (3)
427
if (string.
Compare
(targetPKey[i].ColumnName, tablePKey[i].ColumnName, false, targetTable.Locale) != 0)
547
if (0 != string.
Compare
(dest.ColumnName, src.ColumnName, false, dest.Table!.Locale))
557
if (0 != string.
Compare
(dest.ColumnName, src.ColumnName, false, dest.Table!.Locale))
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\KeyTipService.cs (1)
883
if (string.
Compare
(keyTip, text, true, culture) == 0)
Microsoft\Windows\Controls\TextSearchInternal.cs (2)
118
if (_charsEntered.Count > 0 && string.
Compare
(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo)) == 0)
259
if (_charsEntered.Count > 0 && string.
Compare
(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo)) == 0)
System.Windows.Forms (40)
System\Windows\Forms\ComponentModel\COM2Interop\COM2Enum.cs (4)
57
if (string.
Compare
(_names[i], value, true, CultureInfo.InvariantCulture) == 0 ||
58
string.
Compare
(_stringValues[i], value, true, CultureInfo.InvariantCulture) == 0)
63
if (bestMatch == -1 && string.
Compare
(_names[i], value, true, CultureInfo.InvariantCulture) == 0)
115
if (string.
Compare
(_stringValues[i], stringValue, true, CultureInfo.InvariantCulture) == 0)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1104
if (string.
Compare
(candidate, base.Text, true, CultureInfo.CurrentCulture) == 0)
1138
|| string.
Compare
(value, GetItemText(selectedItem), ignoreCase: false, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
421
if (string.
Compare
(_owner.GetItemText(value), _owner.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
290
if (string.
Compare
(_props[i].Name, dataPropertyName, ignoreCase: true, CultureInfo.InvariantCulture) == 0)
315
if (string.
Compare
(_props![boundColumnIndex].Name, sortProperty!.Name, ignoreCase: true, CultureInfo.InvariantCulture) == 0)
637
if (string.
Compare
(dataGridViewColumn.DataPropertyName, dataPropertyName, ignoreCase: true, CultureInfo.InvariantCulture) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
1609
&& string.
Compare
(clonedColumn.DataPropertyName,
14077
&& string.
Compare
(stringValue, dataGridViewColumn.Name, ignoreCase: false, CultureInfo.InvariantCulture) == 0)
17141
&& string.
Compare
(dataGridViewColumn.DataPropertyName,
18954
&& string.
Compare
(
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
767
if (string.
Compare
(ToolTipText, value, ignoreCase: false, CultureInfo.InvariantCulture) != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (2)
342
if (string.
Compare
(dataGridViewColumn.Name, columnName, true, CultureInfo.InvariantCulture) == 0)
1021
if (string.
Compare
(dataGridViewColumn.Name, columnName, true, CultureInfo.InvariantCulture) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxEditingControl.cs (1)
47
if (string.
Compare
(valueStr, Text, true, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (2)
144
if (s is not null && string.
Compare
(s, "no", true, CultureInfo.InvariantCulture) == 0)
149
if (s is not null && string.
Compare
(s, "hover", true, CultureInfo.InvariantCulture) == 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1087
if (string.
Compare
(value, GetItemText(Items[index]), true, CultureInfo.CurrentCulture) == 0)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
424
if (string.
Compare
(_owner.GetItemText(value), _owner.NativeGetItemText(index), true, CultureInfo.CurrentCulture) != 0)
System\Windows\Forms\Controls\ListControl\ListControl.cs (1)
498
found = string.
Compare
(str, GetItemText(items[index]), ignoreCase, CultureInfo.CurrentCulture) == 0;
System\Windows\Forms\Controls\ListView\ListView.IconComparer.cs (2)
34
return string.
Compare
(currentItem?.Text, nextItem?.Text, false, CultureInfo.CurrentCulture);
38
return string.
Compare
(nextItem?.Text, currentItem?.Text, false, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1517
if (string.
Compare
(tab.TabName, current.TabName, ignoreCase: false, CultureInfo.InvariantCulture) < 0)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\AttributeTypeSorter.cs (1)
23
return string.
Compare
(GetTypeIdString(x), GetTypeIdString(y), ignoreCase: false, CultureInfo.InvariantCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.DisplayNameSortComparer.cs (1)
16
return string.
Compare
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyDescriptorComparer.cs (2)
32
int result = string.
Compare
(a1.Name, a2.Name, false, CultureInfo.InvariantCulture);
36
result = string.
Compare
(a1.PropertyType.FullName, a2.PropertyType.FullName, true, CultureInfo.CurrentCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (1)
287
int result = string.
Compare
(entryName, sortString, ignoreCase: false, CultureInfo.InvariantCulture);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
1745
if (value == currentValue || string.
Compare
(textValue, itemTextValue, true, CultureInfo.InvariantCulture) == 0)
2472
equal = string.
Compare
(@string, currentValue.ToString(), true, CultureInfo.CurrentCulture) == 0;
System\Windows\Forms\Controls\TreeView\TreeViewImageIndexConverter.cs (2)
30
if (string.
Compare
(strValue, SR.toStringDefault, true, culture) == 0)
34
else if (string.
Compare
(strValue, SR.toStringNone, true, culture) == 0)
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownItemCompare.cs (1)
25
return string.
Compare
(p.ToString(), q.ToString(), false, CultureInfo.CurrentCulture);
System\Windows\Forms\ImageIndexConverter.cs (1)
53
if (value is string stringValue && string.
Compare
(stringValue, SR.toStringNone, true, culture) == 0)
System\Windows\Forms\Input\KeysConverter.cs (1)
144
return string.
Compare
(ConvertToString(a), ConvertToString(b), false, CultureInfo.InvariantCulture);
System\Windows\Forms\Internal\Formatter.cs (1)
408
return string.
Compare
(valueStr, formattedNullValueStr, true, GetFormatterCulture(formatInfo)) == 0;
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
315
return string.
Compare
(string1, string2, ignoreCase, CultureInfo.InvariantCulture) == 0;
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.SystemColorComparer.cs (1)
16
=> string.
Compare
(x.Name, y.Name, false, CultureInfo.InvariantCulture);
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
42
if (string.
Compare
(value, col.Name, false, Globalization.CultureInfo.InvariantCulture) == 0)
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (1)
2572
return string.
Compare
(y.Value, x.Value, false, TypeConverterHelper.InvariantEnglishUS);
System\Xaml\XamlXmlWriter.cs (1)
775
return string.
Compare
(x.Key, y.Key, false, TypeConverterHelper.InvariantEnglishUS);