Compiler Error CS0100
The parameter name 'parameter name' is a duplicate
A method declaration used the same parameter name more than once. Parameter names must be unique in a method declaration. For more information, see Methods.
The following sample generates CS0100:
// CS0100.cs
namespace x
{
public class a
{
public static void f(int i, char i) // CS0100
// try the following line instead
// public static void f(int i, char j)
{
}
public static void Main()
{
}
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: