Exemple #1
0
 public ExcelPropertyMapFactory(ITypeInfoProvider propertiesExtractor,
                                IPropertyInfoExtractor propertyInfoExtractor,
                                IPropertyNameConvention conventionsApplier,
                                ILogger <ExcelPropertyMapFactory> logger)
 {
     _propertiesExtractor   = propertiesExtractor ?? throw new ArgumentNullException(nameof(propertiesExtractor));
     _propertyInfoExtractor =
         propertyInfoExtractor ?? throw new ArgumentNullException(nameof(propertyInfoExtractor));
     _conventionsApplier = conventionsApplier ?? throw new ArgumentNullException(nameof(conventionsApplier));
     Log = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemple #2
0
 public PersonWithMetadataModel(IPropertyInfoExtractor propertyInfoExtractor) : base(propertyInfoExtractor)
 {
 }
Exemple #3
0
 protected ModelMetadata(IPropertyInfoExtractor propertyInfoExtractor)
 {
     _propertyInfoExtractor = propertyInfoExtractor ?? throw new ArgumentNullException(nameof(propertyInfoExtractor));
     _metadataDictionary    = new Dictionary <string, CellMetadata>();
 }
Exemple #4
0
 public ModelBuilder(IPropertyInfoExtractor propertyInfoExtractor)
 {
     _propertyInfoExtractor =
         propertyInfoExtractor ?? throw new ArgumentNullException(nameof(propertyInfoExtractor));
 }