<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1502</ErrorName>
  <Examples>
    <string>// cs1502-2.cs: The best overloaded method match for `System.Console.WriteLine(bool)' has some invalid arguments
// Line: 10
using System;

public class MainClass
{
        public static void Main()
        {
		test MyBug = new test();
                Console.WriteLine (MyBug.mytest());
	}
}

public class   test
{
        public void mytest()
        {
                Console.WriteLine("test");
	}
}


</string>
    <string>// cs1502-3.cs: The best overloaded method match for `T.Blah(out int)' has some invalid arguments
// Line: 11

using System;

class T {
        static void Blah (out int g) { g = 0; }

        static int Main (string [] args) {
                IntPtr g;
                Blah (out g);
		return (int) g;
        }
}
</string>
    <string>// cs1502-4.cs: The best overloaded method match for `X.X(int)' has some invalid arguments
// Line: 14

public class X {

	public X (int a)
	{
	}
}

class D {
	static void Main ()
	{
		X x = new X ("hola");
	}
}

</string>
    <string>// cs1502-5.cs:  The best overloaded method match for `System.Windows.Forms.X11Xim.XCreateIC(System.IntPtr, __arglist)' has some invalid arguments
// Line: 16

using System;
using System.Runtime.InteropServices;

namespace System.Windows.Forms
{
        internal class X11Xim
        {
                [DllImport ("libX11", EntryPoint="XCreateIC")]
                internal extern static IntPtr XCreateIC(IntPtr xim, __arglist);

                public static void Main ()
                {
                        XCreateIC (IntPtr.Zero, IntPtr.Zero);
                }
        }
}


</string>
    <string>// cs1502-6.cs: The best overloaded method match for `Test.Test(TestMethod2)' has some invalid arguments
// Line: 8

public class Test
{
	void Foo ()
	{
		new Test (new TestMethod (Foo));
	}

	public Test (TestMethod2 test) {}
}

public delegate void TestMethod ();
public delegate void TestMethod2 (object o);</string>
    <string>// cs1502-7.cs: The best overloaded method match for `TestCase.TestS(ref object)' has some invalid arguments
// Line: 21

using System;

public struct Struct {
	public int x, y, z;
}

public class TestCase {
	
	public static void Main() {
		
		Struct s = new Struct();
		
		s.x = 1;
		s.y = 2;
		
		System.Console.WriteLine("{0} {1} {2}", s.x, s.y, s.z);
		
		TestS(ref s);
	}	
	
	public static void TestS(ref object ino) {
		System.Console.WriteLine("{0}", ((Struct)(ino)).x);
	}
	
}
</string>
    <string>// cs1502.cs: The best overloaded method match for `X.foo(ref int)' has some invalid arguments
// Line: 8
class X {
	public void foo (ref int blah) {}

	public void bar (ref int baz)
	{
		foo(out baz);
	}

	static void Main ()
	{
	}
}
</string>
  </Examples>
</ErrorDocumentation>