public InstanceMethodWithExpressionFieldReaderFactory(Expression <Func <TItem, TMiddle> > middleExpression, [NotNull] FieldDefinitionHandlerPart.GetInstanceMethodDelegate getInstanceReaderMethod)
 {
     _middleExpression        = middleExpression;
     _getInstanceReaderMethod = getInstanceReaderMethod
                                ?? throw new ArgumentNullException(nameof(getInstanceReaderMethod));
 }
Esempio n. 2
0
 public ActionFieldWriterFactory(FieldDefinitionHandlerPart.GetInstanceMethodDelegate getInstanceLocatorMethod)
 {
     _getInstanceLocatorMethod = getInstanceLocatorMethod;
 }
 public InstanceMethodFieldReaderFactory([NotNull] FieldDefinitionHandlerPart.GetInstanceMethodDelegate getInstanceLocatorMethod)
 {
     _getInstanceLocatorMethod = getInstanceLocatorMethod
                                 ?? throw new ArgumentNullException(nameof(getInstanceLocatorMethod));
 }
 public DelegateItemLocatorFactory(FieldDefinitionHandlerPart.GetInstanceMethodDelegate getInstanceLocatorMethod)
 {
     _getInstanceLocatorMethod = getInstanceLocatorMethod;
 }