Yeah, the lamba solution I provided was a "quick fix". I wouldn't do it that way in "professional" code. Making it a member was cleaner as noted. Unfortunately, I think OP is going down the entirely wrong path creating objects in code, but when you post those kind of responses on CodeProject, you tend to get 1 voted by people who "don't like your attitude", so I stopped bothering :). There is a danger with the lamba solution, that you could be passing an unintended instance of the wrong object if you don't pay attention :).