Esempio n. 1
0
 private bool PropertiesAreInOrder(PropertyInformation first, PropertyInformation last)
 {
     if (_direction == ListSortDirection.Ascending)
     {
         return(first.CompareTo(last) <= 0);
     }
     return(last.CompareTo(first) <= 0);
 }
Esempio n. 2
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));
 }