Can you explain what this code fragment is doing?
Posted
by coffeeaddict
on Stack Overflow
See other posts from Stack Overflow
or by coffeeaddict
Published on 2009-08-18T19:58:12Z
Indexed on
2010/03/31
2:13 UTC
Read the original article
Hit count: 331
c#
|ternary-operator
repeater.StartIndex = layout == ProductLayout.Grid4Columns ? startIndex - 1 : 0;
I don't get it. What is layout == [expression]
doing here in this case as it sets StartIndex
Can somebody help explain what this code is doing?
© Stack Overflow or respective owner