Friday, April 19, 2019

What convention do you use for private class members?

I recently saw a channel 9 video where someone mentioned that instead of using an underscore to prefix the name of the variable you should use “this”. What is your preferred way to do it?

Also, is there any reason to use private fields over private properties? 🤔

What convention do you use for private class members? Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team