Exemplo n.º 1
0
        private static void CheckForComponentAttribute(
            Type type,
            GetComponentAttributeType typeEnum,
            FieldInfo field,
            List <FieldInfoAndAttributeType> cachedFields
            )
        {
            object attribute = Attribute.GetCustomAttribute(field, type, true);

            if (attribute != null)
            {
                cachedFields.Add(new FieldInfoAndAttributeType(field, typeEnum));
            }
        }
Exemplo n.º 2
0
 public FieldInfoAndAttributeType(FieldInfo field, GetComponentAttributeType type)
 {
     Field = field;
     Type  = type;
 }