public static int CompareByPath(FolderInfo x, FolderInfo y) { return(String.Compare(x.Path, y.Path, StringComparison.InvariantCulture)); //return x.Path.CompareTo(y.Path); }
public int CompareTo(object obj) { FolderInfo otherInfo = (FolderInfo)obj; return(this.ID.CompareTo(otherInfo.ID)); }