0

是否有任何方法,给出如下声明

First().Second();

从内部知道First()是否/何时Second()执行?

参考:http ://martinfowler.com/dslwip/MethodChaining.html

4

1 回答 1

2

Second()在完成之前不会执行First(),因此这是不可能的。能做的就是First()破坏流畅度,从而无法Second()运行。

于 2010-01-27T12:06:45.750 回答