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)); } }
public FieldInfoAndAttributeType(FieldInfo field, GetComponentAttributeType type) { Field = field; Type = type; }