C# Error
CS0839 – Argument missing
Reason for the Error & Solution
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.
Example
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;
}
}
}