示例#1
0
 public static int CompareByPanelSetName(PanelSet x, PanelSet y)
 {
     if (x == null)
     {
         if (y == null)
         {
             return(0);
         }
         else
         {
             return(-1);
         }
     }
     else
     {
         if (y == null)
         {
             return(1);
         }
         else
         {
             int retval = x.m_PanelSetName.CompareTo(y.m_PanelSetName);
             if (retval != 0)
             {
                 return(retval);
             }
             else
             {
                 return(x.m_PanelSetName.CompareTo(y.m_PanelSetName));
             }
         }
     }
 }
示例#2
0
 public static int CompareByPanelSetName(PanelSet x, PanelSet y)
 {
     if (x == null)
     {
         if (y == null)
         {
             return 0;
         }
         else
         {
             return -1;
         }
     }
     else
     {
         if (y == null)
         {
             return 1;
         }
         else
         {
             int retval = x.m_PanelSetName.CompareTo(y.m_PanelSetName);
             if (retval != 0)
             {
                 return retval;
             }
             else
             {
                 return x.m_PanelSetName.CompareTo(y.m_PanelSetName);
             }
         }
     }
 }