public ObjectDictionaryConverter(DictionaryConverterCache cache)
 {
     _cache         = cache;
     _propertyCache = new ReadOnlyPropertyCache <T>();
     _mappers       = _propertyCache
                      .Select(property => GetDictionaryMapper(property, property.Property.PropertyType))
                      .ToArray();
 }
Exemplo n.º 2
0
 public DynamicObjectMapperCache()
 {
     _implementationBuilder = new DynamicImplementationBuilder();
     _dtoCache = new DynamicObjectConverterCache(_implementationBuilder);
     _otdCache = new DictionaryConverterCache();
 }
 public DynamicObjectMapperCache()
 {
     _implementationBuilder = new DynamicImplementationBuilder();
     _dtoCache = new DynamicObjectConverterCache(_implementationBuilder);
     _otdCache = new DictionaryConverterCache();
 }