Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EmptyModelMetadataProvider.cs « System.Web.Mvc « src - github.com/mono/aspnetwebstack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 000f334c48c01658ffe9497567300c9c7f452692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
using System.Collections.Generic;

namespace System.Web.Mvc
{
    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);
        }
    }
}