summaryrefslogtreecommitdiffhomepage
path: root/tr-tr/csharp-tr.html.markdown
diff options
context:
space:
mode:
authorGuntbert Reiter <guntbert@gmx.at>2015-10-04 16:44:24 +0200
committerG. Reiter <guntbert@gmx.at>2015-10-04 21:56:24 +0200
commitb1984042c845a73333972715e88a3d7a2e8cfdd7 (patch)
tree29cfa9d0f1de495d82bf209215d5b707ad5b3b77 /tr-tr/csharp-tr.html.markdown
parent38b9bf7eed7ae3b7f2cf1fc97f01a223f88fce90 (diff)
Put demonstrative condition into ternary expression
It should be made clear that the part before the ternary operator is indeed a condition, most often created as some comparison expression.
Diffstat (limited to 'tr-tr/csharp-tr.html.markdown')
-rw-r--r--tr-tr/csharp-tr.html.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/tr-tr/csharp-tr.html.markdown b/tr-tr/csharp-tr.html.markdown
index a68026a5..91c7c269 100644
--- a/tr-tr/csharp-tr.html.markdown
+++ b/tr-tr/csharp-tr.html.markdown
@@ -234,7 +234,8 @@ on a new line! ""Wow!"", the masses cried";
// Üçlü operatörler
// Basit bir if/else ifadesi şöyle yazılabilir
// <koşul> ? <true> : <false>
- string isTrue = (true) ? "True" : "False";
+ int toCompare = 17;
+ string isTrue = toCompare == 17 ? "True" : "False";
// While döngüsü
int fooWhile = 0;