vb.net中用<.....>括起来的语句的作用是什么?
经常在VB2005程序中看到某语句用中括号括起来,后面跟一个过程或结构。据说是引用外部dll用的。那么,下面的语句又怎么理解呢?<StructLayout(LayoutK...
经常在VB2005程序中看到某语句用中括号括起来,后面跟一个过程或结构。据说是引用外部dll用的。那么,下面的语句又怎么理解呢?
<StructLayout(LayoutKind.Sequential)> _
Public Structure OSVersionInfo
Public OSVersionInfoSize As Integer
Public majorVersion As Integer
Public minorVersion As Integer
Public buildNumber As Integer
Public platformId As Integer
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _
Public versionString As String
End Structure
请高手过目阿 展开
<StructLayout(LayoutKind.Sequential)> _
Public Structure OSVersionInfo
Public OSVersionInfoSize As Integer
Public majorVersion As Integer
Public minorVersion As Integer
Public buildNumber As Integer
Public platformId As Integer
<MarshalAs(UnmanagedType.ByValTStr, SizeConst:=128)> _
Public versionString As String
End Structure
请高手过目阿 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询