public int CompareTo(object obj) { ImageHashData otherOb = (ImageHashData)obj; return((otherOb == null) ? 1 : (Type != otherOb.Type) ? Type.CompareTo(otherOb.Type) : Hash.ToString().CompareTo(otherOb.Hash.ToString())); }
public int CompareTo(object obj) { ImageHashData otherOb = (ImageHashData)obj; if (otherOb == null) { return(1); } if (type != otherOb.type) { return(type.CompareTo(otherOb.type)); } return(ownerOb.ToString().CompareTo(otherOb.ownerOb.ToString())); }