public override bool IsDefined (Type attributeType, bool inherit) { if (!IsCompilerContext) throw new NotSupportedException (); return generic_type.IsDefined (attributeType, inherit); }