diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CollectionModelBinder.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CollectionModelBinder.cs index 3ccb9c5523..853eb2baf5 100644 --- a/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CollectionModelBinder.cs +++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Binders/CollectionModelBinder.cs @@ -165,7 +165,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding return new[] { rawValue }; } - internal static void CreateOrReplaceCollection(ModelBindingContext bindingContext, + internal static void CreateOrReplaceCollection(ModelBindingContext bindingContext, IEnumerable incomingElements, Func> creator) { diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs index a5d6af6da5..abcc5c061a 100644 --- a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs +++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/AssociatedMetadataProvider.cs @@ -56,17 +56,6 @@ namespace Microsoft.AspNet.Mvc.ModelBinding return CreateMetadataFromPrototype(prototype, modelAccessor); } - public ModelMetadata GetMetadataForParameter(ParameterInfo parameter) - { - if (parameter == null) - { - throw Error.ArgumentNull("parameter"); - } - - TModelMetadata prototype = GetTypeInformation(parameter.ParameterType, parameter.GetCustomAttributes()).Prototype; - return CreateMetadataFromPrototype(prototype, modelAccessor: null); - } - // Override for creating the prototype metadata (without the accessor) protected abstract TModelMetadata CreateMetadataPrototype(IEnumerable attributes, Type containerType, diff --git a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/IModelMetadataProvider.cs b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/IModelMetadataProvider.cs index dc1d4b8c65..0d4f8a64ce 100644 --- a/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/IModelMetadataProvider.cs +++ b/src/Microsoft.AspNet.Mvc.ModelBinding/Metadata/IModelMetadataProvider.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Reflection; namespace Microsoft.AspNet.Mvc.ModelBinding { @@ -11,7 +10,5 @@ namespace Microsoft.AspNet.Mvc.ModelBinding ModelMetadata GetMetadataForProperty(Func modelAccessor, Type containerType, string propertyName); ModelMetadata GetMetadataForType(Func modelAccessor, Type modelType); - - ModelMetadata GetMetadataForParameter(ParameterInfo parameterInfo); } }