public GeneratedMetadataTypeDescriptor(ICustomTypeDescriptor parent, Type type)
     : base(parent)
 {
     this.generatedMetadataType = TypeDescriptorCache.GetGeneratedMetadataType(type);
     if (this.generatedMetadataType != null)
     {
         TypeDescriptorCache.ValidateMetadataType(type, this.generatedMetadataType);
     }
 }