|
From: Andrey S. <as...@gm...> - 2007-10-13 21:05:49
|
On 10/14/07, Steve Mitcham <Ste...@ty...> wrote:
> I'm trying to avoid calling new in the fluent interface part
I do not know how you can do Be.A(delegate) without having to call new.
One possible way could be Be.An<Action<T>>(delegate(T value) {}) which
does seem better, but I am not sure if it would actually compile (I do
not have time to check now).
I agree that both ways are too cryptic and verbose.
But being able to provide method body just-in-place for some cases is
very convenient.
|