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

以下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