Quantcast
Channel: Question and Answer » encapsulation
Viewing all articles
Browse latest Browse all 12

How can I use the “Non-Member Functions Improve Encapsulation” pattern from C#?

$
0
0

In 2000, Scott Meyers argued that non-member functions improve encapsulation. In C++, a non-member function is a C-style global function:

http://www.drdobbs.com/cpp/how-non-member-functions-improve-encapsu/184401197

If you subscribe to his theory, how would you implement this in C#?

If you don’t subscribe to his theory, and wish to debate the topic, please do it outside of this post (I suggest her: Feel free the comment here with regard to the actual pattern: — https://plus.google.com/105106301233937725736/posts/QvhKbB3y7F2 .)

This question is about how to best implement that pattern in C#. Acceptable answer describes a set of rules to use this pattern from C#


Viewing all articles
Browse latest Browse all 12

Trending Articles