<?xml version="1.0" encoding="iso-8859-1"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS1593</ErrorName>
  <Examples>
    <string>// cs1593: Using different kind of signatures for delegate invocation.
// Line: 11
//
// The delegate has an explicit signature with 0 arguments, so it 
// can not be assigned to a delegate with one argument.
//
delegate void D (int x);

class X {
	static void Main ()
	{
		D d2 = delegate () {};
	}
}
</string>
    <string>// cs1593.cs : Delegate 'Blah.MyDelegate' does not take '1' arguments
// Line : 21

using System;

public class Blah {

	public delegate int MyDelegate (int i, int j);
	
	public int Foo (int i, int j)
	{
		return i+j;
	}

	public static int Main ()
	{
		Blah i = new Blah ();

		MyDelegate del = new MyDelegate (i.Foo);

		int number = del (2);

		if (number == 5)
			return 0;
		else
			return 1;

	}

}
</string>
  </Examples>
</ErrorDocumentation>