﻿<?xml version="1.0" encoding="utf-8"?>
<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.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>