Esempio n. 1
0
 public static int CompareByName(IFileOrFolder first, IFileOrFolder second)
 {
     if (first == null && second == null)
     {
         return(0);                                 // equals
     }
     if (first == null)
     {
         return(-1);               // second greater
     }
     if (second == null)
     {
         return(1);                 // first is greater
     }
     return(String.Compare(first.Name, second.Name, StringComparison.Ordinal));
 }
Esempio n. 2
0
File: Tuples.cs Progetto: s0/ql
 internal static Tuple containerparent(IFolder parent, IFileOrFolder child) =>
 new Tuple("containerparent", parent, child);