コード例 #1
0
ファイル: Macroblock.cs プロジェクト: sarandogou/thialgou
 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));
 }
コード例 #2
0
ファイル: PictureService.cs プロジェクト: outscope/nop-master
 public int CompareTo(HashItem other)
 {
     return(other == null ? -1 : PictureId.CompareTo(other.PictureId));
 }