MielieSpoor
Expert Member
- Joined
- Dec 6, 2006
- Messages
- 1,984
I saw in a post sometime this week somebody moaned a bit about this expression.
Yes, it has got pro's and con's (like everything in life), of which on con I would say is readability.
One cool thing about it would can be highlighted using the following example:
Yes I know some of you won't like this, but there are some instances where this type of thing can come in handy!
Yes, it has got pro's and con's (like everything in life), of which on con I would say is readability.
One cool thing about it would can be highlighted using the following example:
Code:
Timer timer = new Timer();
timer.Ineterval = TimeSpan.FromSeconds(1);
timer.Tick += (sender, args) =>
{
if(count > 3)
{
// do something random
}
// do something random 2
};
timer.Start();
Yes I know some of you won't like this, but there are some instances where this type of thing can come in handy!