Ternary ? operator vs the conventional If-else operator in c#

Viewed 30752

Possible Duplicate:
Is the conditional operator slow?

I'm a massive user of the ? operator in C#. However my project manager frequently warns me that using ? operator might cost some performance compared to the If-Else statements in a large scale application. So I'm told to avoid using it. However, I love using it because it is concise and sort of keeps the code clean.

Is there such performance overhead when using ? operator?

5 Answers
Related