Invoke cannot be called directly on a delegate
The Invoke method cannot be called on a delegate. For example:
using System; public class A { public static void Main() { } } public delegate void B(A a); internal class C { public void Baz(A a, B b) { b.Invoke(a); // CS1533 // try the following line instead // b(a); } }