Export (0) Print
Expand All

ParameterBindingRulesCollection.Add Method (Type, Func<HttpParameterDescriptor, HttpParameterBinding>)

Adds function to the end of the collection. The function added is a wrapper around funcInner that checks that parameterType matches typeMatch.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

public void Add(
	Type typeMatch,
	Func<HttpParameterDescriptor, HttpParameterBinding> funcInner
)

Parameters

typeMatch
Type: System.Type

type to match against HttpParameterDescriptor.ParameterType

funcInner
Type: System.Func<HttpParameterDescriptor, HttpParameterBinding>

inner function that is invoked if type match succeeds

Show:
© 2014 Microsoft