a = b ? c : d ;
not suitable for
if (b) a = c; else a = d;
and
int MyProp{get;set;}
not suitable for
int myVar;
int MyProp{get {return myVar; } set{myVar=value;}}
Also see code templates in visual studio for faster coding.
But note that short code does not mean that it is good code.
source
share