Beispiel #1
0
 public ObjectResolver(IModelBinder[] binders, IValueConverterRegistry converters,
     ITypeDescriptorRegistry registry)
 {
     _binders.AddRange(binders);
     var defaultBinder = new StandardModelBinder(converters, registry);
     _binders.Add(defaultBinder);
 }
Beispiel #2
0
 public StandardModelBinder(IValueConverterRegistry converters, ITypeDescriptorRegistry typeRegistry)
 {
     _converters = converters;
     _typeRegistry = typeRegistry;
     NamingStrategy = DefaultNamingStrategy;
 }