Compiler Warning (level 2) CS1587
XML comment is not placed on a valid language element
Recommended tags for documentation comments are not allowed on all language elements. For example, a tag is not allowed on a namespace. For more information on XML comments, see Recommended Tags for Documentation Comments.
The following sample generates CS1587:
C#
// CS1587.cs
// compile with: /W:2 /doc:x.xml
/// <summary>test</summary> // CS1587, tag not allowed on namespace
namespace MySpace
{
class MyClass
{
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: