public DynamicObjectConverter(ObjectConverterCache cache)
 {
     _cache         = cache;
     _propertyCache = new ReadWritePropertyCache <TImplementation>();
     _converters    = _propertyCache
                      .Select(property => GetDictionaryToObjectConverter(property, property.Property.PropertyType))
                      .ToArray();
 }
 public DynamicObjectMapperCache()
 {
     _implementationBuilder = new DynamicImplementationBuilder();
     _dtoCache = new DynamicObjectConverterCache(_implementationBuilder);
     _otdCache = new DictionaryConverterCache();
 }
Пример #3
0
 public DynamicObjectMapperCache()
 {
     _implementationBuilder = new DynamicImplementationBuilder();
     _dtoCache = new DynamicObjectConverterCache(_implementationBuilder);
     _otdCache = new DictionaryConverterCache();
 }