Example #1
0
 static int sortByVKey(tscscanmap.comment comm1, tscscanmap.comment comm2)
 {
     if (comm1 == null)
     {
         if (comm2 == null)
             return 0; //equal
         else
             return -1;//map1 is less
     }
     else
     {
         if (comm2 == null)
             return 1;//map1 is greater
         else
         {
             return comm1._lineNumber.CompareTo(comm2._lineNumber);
         }
     }
 }
Example #2
0
 static int sortByVKey(tscscanmap.tscscanmapping map1, tscscanmap.tscscanmapping map2)
 {
     if (map1 == null)
     {
         if (map2 == null)
             return 0; //equal
         else
             return -1;//map1 is less
     }
     else
     {
         if (map2 == null)
             return 1;//map1 is greater
         else
         {
             return map1._vkey.CompareTo(map2._vkey);
         }
     }
 }