Inheritance: System.Attribute
Ejemplo n.º 1
0
        public ComponentDescriptor(Type type, ComponentAttribute componentAttribute)
        {
            this.Type       = type;
            this.Attributes = componentAttribute;
            this.Injections = new List <InjectDescriptor>();

            foreach (MemberInfo member in type.GetMembers(BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance))
            {
                if (member is FieldInfo || member is PropertyInfo)
                {
                    InjectAttribute injectAttribute = null;

                    if ((injectAttribute = member.GetCustomAttribute <InjectAttribute>()) != null)
                    {
                        Injections.Add(new InjectDescriptor(member, injectAttribute));
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public InjectDescriptor(MemberInfo member, InjectAttribute injectAttribute)
 {
     this.Member = member;
     this.Attributes = injectAttribute;
 }
Ejemplo n.º 3
0
 public InjectDescriptor(MemberInfo member, InjectAttribute injectAttribute)
 {
     this.Member     = member;
     this.Attributes = injectAttribute;
 }