Compiler Warning (level 2) CS1572
XML comment on 'construct' has a param tag for 'parameter', but there is no parameter by that name
When using the DocumentationFile compiler option, a comment was specified for a parameter that does not exist for the method. Change the value passed to the name attribute or remove one of the comment lines.
The following sample generates CS1572:
// CS1572.cs
// compile with: /W:2 /doc:x.xml
/// <summary>help text</summary>
public class MyClass
{
/// <param name='Int1'>Used to indicate status.</param>
/// <param name='Char1'>Used to indicate status.</param>
/// <param name='Char2'>???</param> // CS1572
public static void MyMethod(int Int1, char Char1)
{
}
/// <summary>help text</summary>
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for