Пример #1
0
 private void InitDefaultBinders()
 {
     _binders.Add(typeof(HttpPostedFileBase), new HttpPostedFileBinder());
     _binders.Add(typeof(HttpPostedFileBase[]), new HttpPostedFileCollectionBinder());
     _binders.Add(typeof(IEnumerable <HttpPostedFileBase>), new HttpPostedFileCollectionBinder());
     _binders.Add(typeof(IList <HttpPostedFileBase>), new HttpPostedFileCollectionBinder());
     _binders.Add(typeof(List <HttpPostedFileBase>), new HttpPostedFileCollectionBinder());
     _binders.Add(typeof(ICollection <HttpPostedFileBase>), new HttpPostedFileCollectionBinder());
     _binders.Add(typeof(Collection <HttpPostedFileBase>), new HttpPostedFileCollectionBinder());
     _binders.Add(typeof(FormCollection), new FormCollectionBinder());
 }