MarshalAs(UnmanagedType 使用的有关问题

MarshalAs(UnmanagedType 使用的问题using System.Runtime.InteropServices [MarshalAs(UnmanagedType.U2

MarshalAs(UnmanagedType 使用的问题
using System.Runtime.InteropServices;

 [MarshalAs(UnmanagedType.U2, SizeConst = 2)]


错误4当前上下文中不存在名称“MarshalAs”



这是什么原因。net4.0下面

[解决办法]
鼠标放在这个单词上面出现小三角下拉
点下拉
点第一项