首页 新闻 会员 周边 捐助

C#4.0中很多类似js对象字段声明的方式实例化对象,如何进行断点调试呢?

0
悬赏园豆:5 [已关闭问题]
1 static Activity ScenarioTwo()
2 {
3 return new Sequence
4 {
5 Activities =
6 {
7 new WriteLine { Text = " Begin workflow" },
8
9 new TransactionScope
10 {
11 Body = new Sequence
12 {
13 Activities =
14 {
15 new WriteLine { Text = " Begin TransactionScope" },
16
17 new PrintTransactionId(),
18
19 new TransactionScope
20 {
21 Body = new Delay { Duration = TimeSpan.FromSeconds(5) },
22 Timeout = TimeSpan.FromSeconds(2),
23 },
24
25 new WriteLine { Text = " End TransactionScope" },
26 },
27 },
28 Timeout = TimeSpan.FromSeconds(10),
29 },
30
31 new WriteLine { Text = " End workflow" },
32 }
33 };
34 }

这些代码最大的特点是每行使用逗号结尾.

风影极光的主页 风影极光 | 小虾三级 | 园豆:1573
提问于:2009-12-29 23:10
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册