首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

以下vb6 Public Property Get / Let 代码怎么转为vb.net代码

2012-02-21 
以下vb6 Public Property Get / Let 代码如何转为vb.net代码?VB codePrivate intAction As IntegerPublic

以下vb6 Public Property Get / Let 代码如何转为vb.net代码?

VB code
Private intAction As IntegerPublic Property Get Action() As Integer    Action = intActionEnd PropertyPublic Property Let Action(ByVal vNewValue As Integer)    intAction = vNewValueEnd Property



[解决办法]
VB.NET code
Private intAction As IntegerPublic Property Action() As Integer    Get() As Integer        Return intAction    End Get    Set(ByVal value As Integer)        intAction = value    End SetEnd Property
[解决办法]
不对.也不需要 as integer


Get() As Integer


=>

Get

热点排行