public int CompareTo(CocoMakeupCanvasLayer pOther)
        {
            if (pOther == null)
            {
                return(1);
            }

            return(LayerId.CompareTo(pOther.LayerId));
        }
Exemplo n.º 2
0
 public int CompareTo(Picture other)
 {
     if (other == null)
     {
         throw new ArgumentNullException("other");
     }
     if (LayerId != other.LayerId)
     {
         return(LayerId.CompareTo(other.LayerId));
     }
     return(Index.CompareTo(other.Index));
 }
Exemplo n.º 3
0
 public int CompareTo(Macroblock other)
 {
     if (other == null)
     {
         throw new ArgumentNullException("other");
     }
     if (LayerId != other.LayerId)
     {
         return(LayerId.CompareTo(other.LayerId));
     }
     if (PictureId != other.PictureId)
     {
         return(PictureId.CompareTo(other.PictureId));
     }
     if (SliceId != other.SliceId)
     {
         return(SliceId.CompareTo(other.SliceId));
     }
     return(Mb.CompareTo(other.Mb));
 }