Use a labmda or delegate to capture the value.

On Wed, Dec 3, 2008 at 2:30 PM, Hugo Hallqvist <[EMAIL PROTECTED]>wrote:

>
> Is there a way to get hold of the mocked object from inside a
> callback? I want to do this in order to save the parameters in a
> dictionary for later validation, and need the mocked object to be the
> key.
>
> I'm currently using a modified version of the technique shown at
> http://codebetter.com/blogs/jeffrey.palermo/archive/2007/10/02/169065.aspx
> and it works for what I want at the moment, but if there is a way
> built into rhino mocks it would be even better.
>
> Regards,
>
> //Hugo
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to