protected Layout <T> WithMember(Expression <Func <T, object> > expression, Action <IFieldSettings> settings) { var fieldSettings = new FieldSettings <T>(expression); settings(fieldSettings); InnerFields.Add(fieldSettings); return(this); }
protected Layout <T> WithMember <TMember>(Expression <Func <T, TMember> > expression, Action <IFieldSettings <T, TMember> > settings) { var fieldSettings = new FieldSettings <T, TMember>(expression); settings(fieldSettings); fieldSettings.FieldValueConverter = fieldSettings.FieldValueConverter ?? new FieldValueConverter <TMember>(); InnerFields.Add(fieldSettings); return(this); }