public override bool Equals(object obj) { if (obj is Triplet <T1, T2, T3> ) { Triplet <T1, T2, T3> triplet = (Triplet <T1, T2, T3>)obj; return(triplet != null && (this.First.Equals(triplet.First) && this.Second.Equals(triplet.Second)) && this.Third.Equals(triplet.Third)); } return(false); }
public Triplet(Triplet <T1, T2, T3> triple) { this.First = triple.First; this.Second = triple.Second; this.Third = triple.Third; }