Skip to content

Instantly share code, notes, and snippets.

View mdarnall's full-sized avatar

Matt Darnall mdarnall

View GitHub Profile
using System;
using System.Web.Mvc;
namespace NewInMVC3.ModelBinder
{
public class GenericModelBinderProvider : IModelBinderProvider
{
public IModelBinder GetBinder(Type modelType)
{
var genericType = typeof (IModelBinder<>).MakeGenericType(modelType);
using System;
using System.Web.Mvc;
using StructureMap.Configuration.DSL;
using StructureMap.Graph;
namespace TransCore.FMWebMobile.DependencyResolution
{
internal class ControllerRegistryConvention : IRegistrationConvention
{
public void Process(Type type, Registry registry)