In the code below I pass method B as an action to be perfomed on on the objects in the IterateObjects method.
I want to make an extension method which fills a stackpanel with buttons. In order to do this I have to pass in a mouse-click-handler.
I wonder if C# (or the underlying .NET framework) supports some kind of \"generic delegate instances\": that is a delegate instance that still has an unresolved type parameter, to be resolved at the t
I\'m trying to use a UITableView without using a nib and without using a UITableViewController. I have added a UITableView instance to a UIViewController Like So
I am visiting some old code, and there are quite a few events declared with delegates manually rather than using EventHandler<T>, like this:
I\'ve got the problem that the UIAlertViewDelegate method - (void)alertViewCancel:(UIAlertView *)alertView is not called when I cancel a AlertView with it\'s cancel button.
I am hoping for some guidence. I have a wpf application that contains a window (Window1) and a page (Page1). The page is inside the window using a frame.
-- If I define an event with an inital empty delegate I don\'t need to check for null class MyClass { public event EventHandler<MyEventArgs> MyEvent = delegate { };
I had a question answered which raised another one, why following does not work? I do not understand it. The compiler says: Cannot convert anonymous method do string. But why?
I am trying to figure out the reason why I should learn these things about delegates and protocols. First I thought that it was necessary in order to create nice(er) design of the code. Then I started