Monday, December 21, 2015

Code Refactors: VB Filed to Property

Its feature is pretty self-explanatory, creating property from VB class field.

If something like the following is written somewhere,

Private time As System.DateTime

        the field is selected, and the VB Field to Property command is called up, the property will be created or adjusted accordingly:

Private m_time As System.DateTime
Public Property time() As System.DateTime Get Return m_time End Get Set(ByVal value As System.DateTime) m_time = value End Set End Property

As can be seen, the field name is prefixed with the m_ so as to avoid conflicts. In case any other field naming convention is necessary, other widgets can help. More will be introduced. Please stay tuned.

FREE Download and Try Visual Smarter 2015


No comments:

Post a Comment