public UIComponentMetadata( string name, Type componentType, Type parentComponentType, UIComponentDefinitionAttribute componentDefinitonAttribute) { Name = name; ComponentType = componentType; ParentComponentType = parentComponentType; ComponentDefinitonAttribute = componentDefinitonAttribute; }
private static UIComponentMetadata CreateComponentMetadata <TOwner>( string name, Type componentType, Type parentComponentType, Attribute[] declaredAttributes, UIComponentDefinitionAttribute componentDefinitonAttribute) { return(new UIComponentMetadata( name, componentType, parentComponentType, componentDefinitonAttribute) { DeclaredAttributesList = declaredAttributes.ToList(), ParentComponentAttributesList = GetClassAttributes(parentComponentType).ToList(), AssemblyAttributesList = GetAssemblyAttributes(typeof(TOwner).Assembly).ToList(), GlobalAttributesList = new List <Attribute>(), ComponentAttributesList = GetClassAttributes(componentType).ToList() }); }