public AttributeGen <EventGen> BeginAttribute(AttributeType type, params object[] args) { return(AttributeGen <EventGen> .CreateAndAdd(this, ref customAttributes, AttributeTargets.Event, type, args)); }