以下vb6 Public Property Get / Let 代码如何转为vb.net代码?
Private intAction As IntegerPublic Property Get Action() As Integer Action = intActionEnd PropertyPublic Property Let Action(ByVal vNewValue As Integer) intAction = vNewValueEnd Property
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