public int CompareTo(ImageData other) { var ret = BaseAddress.CompareTo(other.BaseAddress); if (ret != 0) { return(ret); } ret = ProcessID - other.ProcessID; if (ret != 0) { return(ret); } return(DllName.CompareTo(other.DllName)); }
public override int GetHashCode() { unchecked { var hash = 17; if (LocalPath != null) { hash = hash * 23 + LocalPath.GetHashCode(); } if (DllName != null) { hash = hash * 23 + DllName.GetHashCode(); } if (ModuleName != null) { hash = hash * 23 + ModuleName.GetHashCode(); } return(hash); } }