summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorSean Corrales <scorrales@gmail.com>2015-10-05 09:50:44 -0500
committerSean Corrales <scorrales@gmail.com>2015-10-05 09:50:44 -0500
commitfe5157d36f4b508479edaa214e097f65e7ba26e1 (patch)
treee6a3f377ba4ed7735bbcf3c2908082b811168e9e /zh-cn
parenta743c831a07f5e846051b156152fe8e6ddcfb097 (diff)
parente57fb68756ec6f4242ad04c359f7796606b52a42 (diff)
Merge pull request #1 from adambard/master
Merging changes from source branch
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/csharp-cn.html.markdown3
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;