<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ErrorName>CS0407</ErrorName>
  <Examples>
    <string>// CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type
// Line: 17

using System;

class X
{
	public delegate object Function(int arg1);

	static void Main ()
	{
		Delegate d = new Function (f);
	}

	static int f (int a)
	{
		return 1;
	}
}
</string>
    <string>// CS0407: A method or delegate `int TestDelegateA(bool)' return type does not match delegate `bool TestDelegateB(bool)' return type
// Line: 12

delegate int TestDelegateA (bool b);
delegate bool TestDelegateB (bool b);

public class MainClass
{
	public static int Delegate(bool b)
	{
		return 0;
	}

	public static void Main() 
	{
		TestDelegateA a = new TestDelegateA (Delegate);
		TestDelegateB b = new TestDelegateB (a);
	}
}

</string>
    <string>// CS0407: A method or delegate `TestDelegateA MainClass.Method(bool)' return type does not match delegate `int TestDelegateA(bool)' return type
// Line: 12

delegate int TestDelegateA (bool b);

public class MainClass
{
	static TestDelegateA Method (bool b)
	{
		return Method;
	}
}

</string>
    <string>// CS0407: A method or delegate `int int.Parse(string)' return type does not match delegate `object Test.Conv(string)' return type
// Line: 17

using System;

public class Test
{
	private delegate object Conv(string str);

	public static void Main()
	{
		Conv c = new Conv(int.Parse);
	}
}
</string>
    <string>// CS0407: A method or delegate `int MainClass.Delegate()' return type does not match delegate `void TestDelegate()' return type
// Line: 12

delegate void TestDelegate();

public class MainClass {
        public static int Delegate() {
                return 0;
        }

        public static void Main() {
                TestDelegate delegateInstance = new TestDelegate (Delegate);
       }
}
</string>
  </Examples>
</ErrorDocumentation>