Quantcast
Channel: Answers for "Best practice for passing data between classes in C#"
Browsing latest articles
Browse All 6 View Live

Answer by Christian Stewart

Hi, What I recommend (from someone who is dealing with hundreds of dlls and classes) - make a static "instance" of each item (public static CharacterAnimator Instance) so you can access it from...

View Article



Answer by tingham

We have implemented both events, as well as key-value coding ( [KNKVC ][1]http://www.kennettnet.co.uk/code/ ) to solve this problem. Key value change observation is really nice but requires a lot of...

View Article

Answer by sebas77

I would split the data from the logic. Encapsulate the data into mini classes (they are called Value Object) and inject them to all the classes that need to use the data in a given context. Inject them...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images