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