locked
Visual Studio "Quick Actions" - Change my Functions to Properties RRS feed

  • Question

  • User-1912941216 posted

    Hi Fourm, 

    I am just getting started with VS 2015 and trying to understand the quick actions options.

    It recommends I change all of my DAL methods to properties. The property does just return a read only set of info retrieved from the DB, so yes it will work the same.

    Now I am wondering why I need functions at all. How would my function have to look and work, for "Quick Actions" not to recommend to change it to a property

    Are functions now, mainly intended to in private, is this because my DAL method is not dependent on anything else in the class, so could be a "shared" function, so why not recommend "shared" and why recommend changing to a property

    Any info would be greatly appreciated, I know I need to learn more, so I am sure this will help me

    Graham Mattingley

    Thursday, February 4, 2016 1:47 PM

Answers