示例#1
0
 public static int CompareByPath(FolderInfo x, FolderInfo y)
 {
     return(String.Compare(x.Path, y.Path, StringComparison.InvariantCulture));
     //return x.Path.CompareTo(y.Path);
 }
示例#2
0
        public int CompareTo(object obj)
        {
            FolderInfo otherInfo = (FolderInfo)obj;

            return(this.ID.CompareTo(otherInfo.ID));
        }