<?xml version="1.0"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1594</ErrorName>
  <Examples>
    <string>// CS1594: Delegate `Blah.MyDelegate' has some invalid 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, "a string");

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

	}

}
</string>
    <string>// CS1594: Delegate `Test.Foo' has some invalid arguments
// Line: 10

namespace Test {
	delegate void Foo (string x, params string [] args);
	class Testee {
		static void Bar (string x, params string [] args) {}
		static void Main () {
			Foo bar = new Foo (Bar);
			bar ("i = ", 5);
		}
	}
}
</string>
    <string>// CS1594: Delegate `Test.Foo' has some invalid arguments
// Line: 10

namespace Test {
	delegate void Foo (string x, params string [] args);
	class Testee {
		static void Bar (string x, params string [] args) {}
		static void Main () {
			Foo bar = new Foo (Bar);
			bar ("x'' = ", "Foo", 5, 3.6);
		}
	}
}
</string>
    <string>// CS1594: Delegate `Test.Foo' has some invalid arguments
// Line: 10

namespace Test {
	delegate void Foo (string x, params string [] args);
	class Testee {
		static void Bar (string x, params string [] args) {}
		static void Main () {
			Foo bar = new Foo (Bar);
			bar ("x' = ", new object [] {"Foo", 5, 3.6 });
		}
	}
}
</string>
  </Examples>
</ErrorDocumentation>