public PropertyField(PropertyType type, Control[] controls, ShouldShow shouldShow, PopulateFull populate, Save save) { this.propertyType = type; this.controls = controls; this.shouldShow = shouldShow; this.populate = populate; this.save = save; }
public override int GetHashCode() { unchecked { int hashCode = (Text != null ? Text.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Name != null ? Name.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ShouldShow.GetHashCode(); return(hashCode); } }
public PropertyField(PropertyType type, Control[] controls, ShouldShow shouldShow, Populate populate, Save save) : this(type, controls, shouldShow, (ctx, opts) => populate(ctx.BlogPost), save) { }
public bool Equals(ReportItem other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Text, other.Text) && string.Equals(Name, other.Name) && ShouldShow.Equals(other.ShouldShow)); }