public Int32 CompareTo(IterationType other, System.ComponentModel.PropertyDescriptor Prop) { Object propertyX; Object propertyY; if (Prop != null) { propertyX = Prop.GetValue(this); propertyY = Prop.GetValue(other); if (propertyX != null && propertyY != null) { if (propertyX.Equals(propertyY)) { return(1); } else { return(0); } } else { return(0); } } else { return(0); } }
public Iterations FilterByIterationType(IterationType IterationType) { Iterations tmp = this.SelectByIterationType(IterationType); this.Clear(); this.AddRange(tmp); return(this); }
public override bool Equals(object obj) { if (typeof(IterationType) == obj.GetType()) { IterationType xT = null; xT = (Access.IterationType)obj; return(xT.IterationTypeID.Equals(this.IterationTypeID)); } else { return(base.Equals(obj)); } }
public Iterations SelectByIterationType(IterationType IterationType) { return(new Iterations(this.Where(f => f.IterationTypeID.IterationTypeID == IterationType.IterationTypeID))); }