public override object [] GetCustomAttributes (bool inherit) { if (!IsCompilerContext) throw new NotSupportedException (); return generic_type.GetCustomAttributes (inherit); }