Top "Delegates" questions

Delegates can refer to several concepts.

Eclipse gets stuck when trying to launch Android app

I'm trying to run helloandroid application on a Motorola Milestone A853. I typed "adb devices" and the mobile is properly …

android eclipse delegates
Are delegates and callbacks the same or similar?

Are delegates the same thing as callbacks? Or are they related somehow?

.net callback delegates
How to create a delegate from a MethodInfo when method signature cannot be known beforehand?

I need a method that takes a MethodInfo instance representing a non-generic static method with arbitrary signature and returns a …

c# .net reflection delegates methodinfo
Invoking WPF Dispatcher with anonymous method

I just realized in a C# .Net 4.0 WPF background thread that this doesn't work (compiler error): Dispatcher.Invoke(DispatcherPriority.Normal, …

c# .net wpf delegates dispatcher
MethodInvoke delegate or lambda expression

What is the difference between the two? Invoke((MethodInvoker) delegate { checkedListBox1.Items.RemoveAt(i); checkedListBox1.Items.Insert(i, temp + validity); …

c# delegates lambda invoke method-invocation
a constructor as a delegate - is it possible in C#?

I have a class like below: class Foo { public Foo(int x) { ... } } and I need to pass to a certain …

c# delegates constructor
Does assigning null remove all event handlers from an object?

I have defined new member in my class protected COMObject.Call call_ = null; This class has the following event handler …

c# .net com delegates event-handling
Error in C#: "An object reference is required for the non-static field, method, or property"

I wrote code in WPF. Firstly, I wrote a separate project to test work with a COM port device, and …

c# wpf delegates dispatcher
Parameter count mismatch with Invoke?

The code block below results in the error: TargetParameterCountException was unhandled by user code. Parameter count mismatch. public void AddListViewItem(…

c# winforms parameters delegates invoke
How do I Unregister 'anonymous' event handler

Say if I listen for an event: Subject.NewEvent += delegate(object sender, NewEventArgs e) { //some code }); Now how do I …

c# .net events delegates anonymous-methods