コード例 #1
0
ファイル: UIComponentMetadata.cs プロジェクト: dwelsh1/atata
 public UIComponentMetadata(
     string name,
     Type componentType,
     Type parentComponentType,
     UIComponentDefinitionAttribute componentDefinitonAttribute)
 {
     Name                        = name;
     ComponentType               = componentType;
     ParentComponentType         = parentComponentType;
     ComponentDefinitonAttribute = componentDefinitonAttribute;
 }
コード例 #2
0
ファイル: UIComponentResolver.cs プロジェクト: dwelsh1/atata
 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()
     });
 }