Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS1593
Collapse the table of content
Expand the table of content

Compiler Error CS1593 

Error Message

Delegate 'del' does not take 'number' arguments

The number of arguments passed to a delegate invocation does not agree with the number of parameters in the delegate declaration.

The following sample generates CS1593:

// CS1593.cs
using System;
delegate string func(int i);   // declare delegate

class a
   public static void Main()
      func dt = new func(z);

   public static string z(int j)
      return j.ToString();

   public static void x(func hello)
      hello(8, 9);   // CS1593
      // try the following line instead
      // hello(8);

Community Additions

© 2015 Microsoft