CompareTo() public méthode

public CompareTo ( object obj ) : int
obj object
Résultat int
 bool PropertiesAreInOrder(PropertyInformation first, PropertyInformation last)
 {
     if (direction == ListSortDirection.Ascending)
     {
         return(first.CompareTo(last) <= 0);
     }
     return(last.CompareTo(first) <= 0);
 }
 private static int CompareNames(PropertyInformation one, PropertyInformation two)
 {
     // use the PropertyInformation CompareTo method, instead of the string.Compare method
     // so that collections get sorted correctly.
     return(one.CompareTo(two));
 }
		private static int CompareNames(PropertyInformation one, PropertyInformation two)
		{
			// use the PropertyInformation CompareTo method, instead of the string.Compare method
			// so that collections get sorted correctly.
			return one.CompareTo(two);
		}
		private bool PropertiesAreInOrder(PropertyInformation first, PropertyInformation last)
		{
			if (direction == ListSortDirection.Ascending)
			{
				return first.CompareTo(last) <= 0;
			}
			else
			{
				return last.CompareTo(first) <= 0;
			}
		}