Пример #1
0
 public static ConventionBase <IType, IValueExtractor> ValueByProperty(
     this ConventionBuilder <IType, IValueExtractor> source, Func <IProperty, bool> filter
     ) => source.ValueByProperty(filter, e => e);
Пример #2
0
 public static ConventionBase <IType, IValueExtractor> ValueByPublicProperty(
     this ConventionBuilder <IType, IValueExtractor> source, Func <IProperty, bool> filter,
     Func <PropertyValueExtractor, PropertyValueExtractor> configurationDelegate
     ) => source.ValueByProperty(filter.And(m => m.IsPublic), configurationDelegate);