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