public DefaultModelMetadata( DefaultModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, IEnumerable <Attribute> attributes) : this(provider, containerType, modelType, propertyName, new MetadataAttributes(attributes.ToArray())) { }
public DefaultModelMetadata( DefaultModelMetadataProvider provider, Type containerType, Func <object> modelAccessor, Type modelType, string propertyName) : base(provider, containerType, modelAccessor, modelType, propertyName) { }
protected DefaultModelMetadata(DefaultModelMetadataProvider provider, Type containerType, Type modelType, string propertyName, MetadataAttributes prototypeCache) : base(provider, containerType, null /* modelAccessor */, modelType, propertyName) { PrototypeCache = prototypeCache; }