I often want to write something like this:
new Form
{
Text = \"Caption\",
Controls =
{
new Button { Text = \"Button 1\", Click = (s, e) =
Try simply assigning an event:
Click = (o,e) => { }
Doesn't work. Initializers work only with things you can directly assign like that. This is because events need to be able to notify anyone they want (you shouldn't be allowed to remove someone else's registration for that event on accident).
I'm not sure if this is their reasoning, but it works for me.