Passing parameters to collaborating objects

Passing parameters to collaborating objects

Old forum URL: forums.lhotka.net/forums/t/1478.aspx


Dodo posted on Friday, October 13, 2006

Hello,

As you all know in the ProjectTracker example in the book, Rocky discusses how to normalize behaviour between the ProjectResource and ResourceAssignment by having them collaborate with the Assignment object. So my question is whats the best way to pass parameters to this object if you have more than a few e.g. with the AddAssignment method is passed in 5 parameters. Should i wrap them up in an object?

Any advice is much appreciated.
Thanks

Copyright (c) Marimer LLC