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)); }
public int CompareTo(HashItem other) { return(other == null ? -1 : PictureId.CompareTo(other.PictureId)); }