public static bool interface_exists(Context ctx, string ifaceName, bool autoload = true) { var info = ctx.GetDeclaredType(ifaceName); if (info == null && autoload) { throw new NotImplementedException("autoload"); } // return info != null && info.Type.GetTypeInfo().IsInterface; } }