diff options
author | Vojta Svoboda <vojtasvoboda.cz@gmail.com> | 2015-10-07 14:26:18 +0200 |
---|---|---|
committer | Vojta Svoboda <vojtasvoboda.cz@gmail.com> | 2015-10-07 14:26:18 +0200 |
commit | bff40e2f9816974abd29322f2a50455f51acd22e (patch) | |
tree | 01177dd231841fea5dea3aa6546fde8d6630f5d3 /zh-cn/csharp-cn.html.markdown | |
parent | 6dabd9568d2a99e7bbc079d0466588bf68a42283 (diff) | |
parent | 5c677e8071291520297ef3d5d8374c6d11285744 (diff) |
Merge branch 'master' into translation/brainfuck-cs
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; |