public bool IsDefined(Type attributeType, bool inherit) { return CustomAttributeData.__GetCustomAttributes(this, attributeType, inherit).Count != 0; }