public override bool Equals(object obj) { MultiHeader peer = (MultiHeader)obj; if (peer == null) { return(false); } if (Object.ReferenceEquals(peer, this)) { return(true); } bool ret = false; ret = (Type == peer.Type); if (!ret) { return(ret); } ret = (Done == peer.Done); if (!ret) { return(ret); } ret = (Err == peer.Err); if (!ret) { return(ret); } return(ret); }
public int CompareTo(object obj) { MultiHeader peer = (MultiHeader)obj; if (peer == null) { throw new InvalidOperationException("Comparing different types of records."); } int ret = 0; ret = (Type == peer.Type) ? 0 : ((Type < peer.Type) ? -1 : 1); if (ret != 0) { return(ret); } ret = (Done == peer.Done) ? 0 : (Done ? 1 : -1); if (ret != 0) { return(ret); } ret = (Err == peer.Err) ? 0 : ((Err < peer.Err) ? -1 : 1); if (ret != 0) { return(ret); } return(ret); }
public int CompareTo(object obj) { MultiHeader multiHeader = (MultiHeader)obj; if (multiHeader == null) { throw new InvalidOperationException("Comparing different types of records."); } int num1 = this.Type == multiHeader.Type ? 0 : (this.Type < multiHeader.Type ? -1 : 1); if (num1 != 0) { return(num1); } int num2 = this.Done == multiHeader.Done ? 0 : (this.Done ? 1 : -1); if (num2 != 0) { return(num2); } int num3 = this.Err == multiHeader.Err ? 0 : (this.Err < multiHeader.Err ? -1 : 1); if (num3 != 0) { return(num3); } return(num3); }
public override bool Equals(object obj) { MultiHeader multiHeader = (MultiHeader)obj; if (multiHeader == null) { return(false); } if (object.ReferenceEquals((object)multiHeader, (object)this)) { return(true); } bool flag1 = this.Type == multiHeader.Type; if (!flag1) { return(flag1); } bool flag2 = this.Done == multiHeader.Done; if (!flag2) { return(flag2); } bool flag3 = this.Err == multiHeader.Err; if (!flag3) { return(flag3); } return(flag3); }
public override bool Equals(object obj) { MultiHeader objA = (MultiHeader)obj; if (objA == null) { return(false); } if (object.ReferenceEquals(objA, this)) { return(true); } bool flag = false; flag = this.Type == objA.Type; if (flag) { flag = this.Done == objA.Done; if (!flag) { return(flag); } flag = this.Err == objA.Err; if (!flag) { return(flag); } } return(flag); }
public int CompareTo(object obj) { MultiHeader header = (MultiHeader)obj; if (header == null) { throw new InvalidOperationException("Comparing different types of records."); } int num = 0; num = (this.Type == header.Type) ? 0 : ((this.Type < header.Type) ? -1 : 1); if (num == 0) { num = (this.Done == header.Done) ? 0 : (this.Done ? 1 : -1); if (num != 0) { return(num); } num = (this.Err == header.Err) ? 0 : ((this.Err < header.Err) ? -1 : 1); if (num != 0) { return(num); } } return(num); }