I've largely got my around the inline constraint syntax (and rather
like it). It's only the "Arg<T>.Matches(Expression<Predicate<T>>)"
syntax that I can't figure, as far as I can see neither of the linked
pages show how to use this specific constraint. I think my problem is
I don't really know enough about the 'Expression<T>'. I tried writing
some lambda style syntax but had problems getting anything to compile.
Is it something like
Arg<decimal>.Matches(new Expression(???)
or
Arg<decimal>.Matches(exp=>{exp.????})
or
Arg<decimal>.Matches(Expression.???)
Is this a syntax for general constraints? or is it something linq specific?
On Thu, Oct 9, 2008 at 2:15 PM, ssteinegger <[EMAIL PROTECTED]> wrote:
>
> Or in the discussion where I introduced it:
> http://groups.google.com/group/RhinoMocks/browse_thread/thread/8152ea391a28dc90/4b1f5cc2855a2232?lnk=gst&q=Arg%3CT%3E#4b1f5cc2855a2232
>
> I'll soon update the documentation in the Wiki.
>
> On 8 Okt., 16:33, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > http://ayende.com/Wiki/Rhino+Mocks+3.5.ashx
> > And look for inline constraints
> >
> > On Wed, Oct 8, 2008 at 3:40 PM, Alex McMahon <[EMAIL PROTECTED]> wrote:
> > > I'm just trying to get my head around the
> > > Arg<T>.Matches(Expression<Predicate<T>>) constraints, and I can't seem to
> > > figure it out. Could anyone give me an example of it's usage?
> >
> > > Regards
> >
> >
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---