public override bool Equals(object obj) { ZKId zkId = (ZKId)obj; if (zkId == null) { return(false); } if (object.ReferenceEquals((object)zkId, (object)this)) { return(true); } bool flag1 = this.Scheme.Equals(zkId.Scheme); if (!flag1) { return(flag1); } bool flag2 = this.Id.Equals(zkId.Id); if (!flag2) { return(flag2); } return(flag2); }
public override bool Equals(object obj) { ZKId peer = (ZKId)obj; if (peer == null) { return(false); } if (Object.ReferenceEquals(peer, this)) { return(true); } bool ret = false; ret = Scheme.Equals(peer.Scheme); if (!ret) { return(ret); } ret = Id.Equals(peer.Id); if (!ret) { return(ret); } return(ret); }
public override bool Equals(object obj) { ZKId objA = (ZKId)obj; if (objA == null) { return(false); } if (object.ReferenceEquals(objA, this)) { return(true); } bool flag = false; flag = this.Scheme.Equals(objA.Scheme); if (flag) { flag = this.Id.Equals(objA.Id); if (!flag) { return(flag); } } return(flag); }
/// <summary> /// /// </summary> /// <param name="a_"></param> /// <param name="tag"></param> public void Deserialize(IInputArchive a_, string tag) { a_.StartRecord(tag); Perms = a_.ReadInt("perms"); Id = new ZKId(); a_.ReadRecord(Id, "id"); a_.EndRecord(tag); }
public int CompareTo(object obj) { ZKId id = (ZKId)obj; if (id == null) { throw new InvalidOperationException("Comparing different types of records."); } int num = 0; num = this.Scheme.CompareTo(id.Scheme); if (num == 0) { num = this.Id.CompareTo(id.Id); if (num != 0) { return(num); } } return(num); }
public int CompareTo(object obj) { ZKId peer = (ZKId)obj; if (peer == null) { throw new InvalidOperationException("Comparing different types of records."); } int ret = 0; ret = Scheme.CompareTo(peer.Scheme); if (ret != 0) { return(ret); } ret = Id.CompareTo(peer.Id); if (ret != 0) { return(ret); } return(ret); }
public int CompareTo(object obj) { ZKId zkId = (ZKId)obj; if (zkId == null) { throw new InvalidOperationException("Comparing different types of records."); } int num1 = this.Scheme.CompareTo(zkId.Scheme); if (num1 != 0) { return(num1); } int num2 = this.Id.CompareTo(zkId.Id); if (num2 != 0) { return(num2); } return(num2); }
public ACL(int perms, ZKId id) { this.Perms = perms; this.Id = id; }
/// <summary> /// /// </summary> /// <param name="perms"></param> /// <param name="id"></param> public ACL(int perms, ZKId id) { Perms = perms; Id = id; }