16 lines
439 B
C#
16 lines
439 B
C#
|
namespace System.Web.Mvc {
|
|||
|
using System;
|
|||
|
|
|||
|
public sealed class RouteDataValueProviderFactory : ValueProviderFactory {
|
|||
|
|
|||
|
public override IValueProvider GetValueProvider(ControllerContext controllerContext) {
|
|||
|
if (controllerContext == null) {
|
|||
|
throw new ArgumentNullException("controllerContext");
|
|||
|
}
|
|||
|
|
|||
|
return new RouteDataValueProvider(controllerContext);
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|