I want to replace the Public Declarations that I currently store in a Module with a Class.
Currently in my Module I have a declaration like this:
How do I get the same functionality from a Class?Code:Public SetPath As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments
I know I can reference the SetPath in code by doing a Dim aud as New Audit so my question is this. Where is the correct place to put theCode:Public Class Audits Private _SetPath As String Public Property SetPath() As String Get Return _SetPath End Get Set(ByVal value As String) _SetPath = value End Set End Property End Class
= My.Computer.FileSystem.SpecialDirectories.MyDocuments
And is this an good example of a member that should be shared? If so does both the Private and the Public need to be shared. I just started using Refactor Pro and it almost always is recommending that I make all members shared. Is there ever a good reason not to do so?




Reply With Quote