public int CompareTo(object obj) { SetRemarkRequest peer = (SetRemarkRequest)obj; if (peer == null) { throw new InvalidOperationException("Comparing different types of records."); } int ret = 0; ret = Path.CompareTo(peer.Path); if (ret != 0) { return(ret); } ret = Remark.CompareTo(peer.Remark); if (ret != 0) { return(ret); } ret = (Version == peer.Version) ? 0 : ((Version < peer.Version) ? -1 : 1); if (ret != 0) { 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); }