public override bool Equals(Object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } Trustee p = (Trustee)(obj); return(this.partyId == p.partyId); }
public QualifiedSubset(String subset) { this.Parties = new List <Trustee>(); try { string[] parties = subset.Split('^'); foreach (var p in parties) { Trustee partyObj = new Trustee(p); this.Parties.Add(partyObj); } } catch { throw new Exception("Invalid Qualified subset example of valid subset: 1^2^3"); } }
public QualifiedSubset(String subset) { this.Parties = new List<Trustee>(); try { string[] parties = subset.Split('^'); foreach (var p in parties) { Trustee partyObj = new Trustee(p); this.Parties.Add(partyObj); } } catch { throw new Exception("Invalid Qualified subset example of valid subset: 1^2^3"); } }