コード例 #1
0
ファイル: CachedModelMetadata.cs プロジェクト: rkakadia/Mvc-1
 // Constructor for creating real instances of the metadata class based on a prototype
 protected CachedModelMetadata(CachedModelMetadata <TPrototypeCache> prototype, Func <object> modelAccessor)
     : base(prototype.Provider,
            prototype.ContainerType,
            modelAccessor,
            prototype.ModelType,
            prototype.PropertyName)
 {
     CacheKey               = prototype.CacheKey;
     PrototypeCache         = prototype.PrototypeCache;
     _isComplexType         = prototype.IsComplexType;
     _isComplexTypeComputed = true;
 }
コード例 #2
0
 // Constructor for creating real instances of the metadata class based on a prototype
 protected CachedModelMetadata(CachedModelMetadata <TPrototypeCache> prototype, Func <object> modelAccessor)
     : base(prototype.Provider,
            prototype.ContainerType,
            modelAccessor,
            prototype.ModelType,
            prototype.PropertyName)
 {
     CacheKey               = prototype.CacheKey;
     PrototypeCache         = prototype.PrototypeCache;
     BinderMetadata         = prototype.BinderMetadata;
     IncludedProperties     = prototype.IncludedProperties;
     ExcludedProperties     = prototype.ExcludedProperties;
     ModelName              = prototype.ModelName;
     _isComplexType         = prototype.IsComplexType;
     _isComplexTypeComputed = true;
 }