System.ComponentModel.ReferenceConverter.ReferenceComparer.Compare C# (CSharp) Method

Compare() public method

public Compare ( object item1, object item2 ) : int
item1 object
item2 object
return int
            public int Compare(object item1, object item2)
            {
                String itemName1 = _converter.ConvertToString(item1);
                String itemName2 = _converter.ConvertToString(item2);

                return string.Compare(itemName1, itemName2, false, CultureInfo.InvariantCulture);
            }
        }
ReferenceConverter.ReferenceComparer