读书人

以下vb6 Public Property Get / Let 代

发布时间: 2012-02-21 16:26:23 作者: rapoo

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

读书人网 >VB Dotnet

热点推荐