This documentation is archived and is not being maintained.

Compiler Error CS0839

Visual Studio 2008

Argument missing.

An argument is missing in the method call.

To correct this error

  • Double check the signature of the method and locate and supply the missing argument.

The following example generates CS0839:

// cs0839.cs
using System;

namespace TestNamespace
{
    class Test
    {
        static int Add(int i, int j)
        {
            return i + j;
        }

        static int Main() 
        {
            int i = Test.Add( , 5); // CS0839
            return 1;
            
        }
    }
}
Show: