Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Visual Studio "Quick Actions" - Change my Functions to Properties

$
0
0

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


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>