I read in an ebook somewhere (which I’m desperate to find again), that, by using delegates, it is possible to write code which has syntax as follows:
()(); // where delegate precedes this.
Can anyone provide any details how this would be possible/in what situation this would occur?
You can do slightly better than the examples given so far, in fact… you can extend it arbitrarily:
And here’s another horrible alternative, for extra ASCII art:
Please never ever, ever do this.
EDIT: One last one – although it’s as much about just replacing things with underscores as anything else, and reusing names wherever possible: