在类中声明属性的代码如下:
Public Class Class1
Private X As String
Private Property one() As String
Get
Return X
End Get
Set(ByVal Value As String)
X = Value
End Set
End Property
End Class
如果想要再声明一个属性,是不是在声明存储属性变量时再加一个变量,然后在第一个End Property后面写Public property two() as String就可以了?