I've seen this really funky shorthand code in a blog post that i now can't remember. It's been bugging me for a while now so i thought i'd ask.
Currently i have this: string answer = (obj =! null)? obj: " ";
It's something similar to string answer = (obj : " ");
I know i could write a method to handle this but i'm looking for the inbuilt way.
Any ideas? Thanks Also, if you know of any other cool little short hand tricks feel free to post =)