12 lines
486 B
C#
12 lines
486 B
C#
|
namespace System.Web.Mvc {
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Reflection;
|
|||
|
|
|||
|
public class EmptyModelMetadataProvider : AssociatedMetadataProvider {
|
|||
|
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName) {
|
|||
|
return new ModelMetadata(this, containerType, modelAccessor, modelType, propertyName);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|