A neat way to express multi-clause 'if' statements in C#, C++ or Java(igoro.com)
submitted by
igoro(815) 3 years, 11 months ago
I stumbled upon a neat trick that works in all C-based languages. By composing ternary conditional operators in a particular way, we can express multi-clause if statements in a surprisingly concise and clean way.
|category: C#
|Views: 25
tags:
C# another
Everyones tags:
Your Tags: