I would like to make sure I'm using good practices for my first major project. When creating Get Properties, is it better to use methods to change multiple private variables and return objects in classes different that the class in which a property is defined?
Here is a (working) specific excerpt from a Class I developed:
Is (READ-ONLY) Public Property Get AllTradesBySpread(Bounds_ASD() As Integer, Optional SubCollection_ASD As Collection = Nothing) As Collection best-implemented as a method? It works, but I'm beginning to wonder if some of the properties I'm writing should be methods.
Although the following code is long, only due to repetition, it's well-commented. It only manipulates two private variables (pNTradesInTradesBySpread & pAllTradesBySpread); however, many of my properties manipulate several.
Any feedback is appreciated.
Bookmarks