public override bool Equals(object obj) { GetRemarkResponse peer = (GetRemarkResponse)obj; if (peer == null) { return(false); } if (Object.ReferenceEquals(peer, this)) { return(true); } bool ret = false; ret = Remark.Equals(peer.Remark); if (!ret) { return(ret); } ret = Stat.Equals(peer.Stat); if (!ret) { return(ret); } return(ret); }
public int CompareTo(object obj) { GetRemarkResponse peer = (GetRemarkResponse)obj; if (peer == null) { throw new InvalidOperationException("Comparing different types of records."); } int ret = 0; ret = Remark.CompareTo(peer.Remark); if (ret != 0) { return(ret); } ret = Stat.CompareTo(peer.Stat); if (ret != 0) { return(ret); } return(ret); }