System.Runtime.InteropServices.HandleRef的异常问题. [英] Exception problem for System.Runtime.InteropServices.HandleRef.

查看:195
本文介绍了System.Runtime.InteropServices.HandleRef的异常问题.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助.
目前,我正在做一个Google Earth应用程序.
但我遇到了这个问题,

向我显示此错误:
using名称空间指令只能应用于名称空间; "System.Runtime.InteropServices.HandleRef"是一种类型,不是名称空间

我该怎么办?
请帮忙.谢谢.

Hi i need help with this.
Currently im doing a google earth application.
but i''ve met with this problem,

It''s showing me this error:
A using namespace directive can only be applied to namespaces; ''System.Runtime.InteropServices.HandleRef'' is a type not a namespace

What can i do ?
Please help. Thanks.

推荐答案

您应该这样做:
删除HandleRef. HandleRef是一种类型

而是添加
you should be doing this:
Remove HandleRef. HandleRef is a type

instead add
using System.Runtime.InteropServices


到您的命名空间列表.


to your list of namespaces.


这篇关于System.Runtime.InteropServices.HandleRef的异常问题.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆