diff options
author | ven <vendethiel@hotmail.fr> | 2015-10-04 22:10:18 +0200 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2015-10-04 22:10:18 +0200 |
commit | 1d436fc63f32074e20941dcaac30a7fb5c5d0cb5 (patch) | |
tree | 29cfa9d0f1de495d82bf209215d5b707ad5b3b77 /zh-cn/csharp-cn.html.markdown | |
parent | 38b9bf7eed7ae3b7f2cf1fc97f01a223f88fce90 (diff) | |
parent | b1984042c845a73333972715e88a3d7a2e8cfdd7 (diff) |
Merge pull request #1342 from guntbert/iss1333-other-languages
[csharp/de,fr,tr,cn] Put demonstrative condition into ternary expression
Diffstat (limited to 'zh-cn/csharp-cn.html.markdown')
-rw-r--r-- | zh-cn/csharp-cn.html.markdown | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zh-cn/csharp-cn.html.markdown b/zh-cn/csharp-cn.html.markdown index a3cda5b3..971c1be9 100644 --- a/zh-cn/csharp-cn.html.markdown +++ b/zh-cn/csharp-cn.html.markdown @@ -232,7 +232,8 @@ on a new line! ""Wow!"", the masses cried"; // 三元表达式 // 简单的 if/else 语句可以写成: // <条件> ? <真> : <假> - string isTrue = (true) ? "True" : "False"; + int toCompare = 17; + string isTrue = toCompare == 17 ? "True" : "False"; // While 循环 int fooWhile = 0; |