// 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; }
// 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; }