Пример #1
0
 /// <summary>
 /// Compares two Item classes logically to each other by name.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public int Compare(tsge.Classes.Item a, tsge.Classes.Item b)
 {
     return(SafeNativeMethods.StrCmpLogicalW(a.Name, b.Name));
 }
Пример #2
0
 /// <summary>
 /// Compares two strings logically to each other.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public int Compare(string a, string b)
 {
     return(SafeNativeMethods.StrCmpLogicalW(a, b));
 }
Пример #3
0
 /// <summary>
 /// Compares two file names logically to each other.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public int Compare(FileInfo a, FileInfo b)
 {
     return(SafeNativeMethods.StrCmpLogicalW(a.Name, b.Name));
 }
Пример #4
0
 /// <summary>
 /// Compares two ItemPrefix classes logically to each other by name.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public int Compare(tsge.Classes.ItemPrefix a, tsge.Classes.ItemPrefix b)
 {
     return(SafeNativeMethods.StrCmpLogicalW(a.Prefix, b.Prefix));
 }