A
Andrew J. Marshall
If I have a class Fool with an attribute Bark implemented as a field
Public Class Fool
Public Bark As Boolean
End Class
and I want to "upgrade" it to be implemented as a property procedure
Public Class Fool
Protected MyBark As Boolean
Public Property Bark() As Boolean
Get
Return Me.MyBark
End Get
Set(ByVal Value As Boolean)
Me.MyBark = Value
End Set
End Property
End Class
, will this cause any problems for consumers of my class?
Public Class Fool
Public Bark As Boolean
End Class
and I want to "upgrade" it to be implemented as a property procedure
Public Class Fool
Protected MyBark As Boolean
Public Property Bark() As Boolean
Get
Return Me.MyBark
End Get
Set(ByVal Value As Boolean)
Me.MyBark = Value
End Set
End Property
End Class
, will this cause any problems for consumers of my class?