Export (0) Print
Expand All
Expand Minimize

Compiler Error CS1671

A namespace declaration cannot have modifiers or attributes

Modifiers are not meaningful when applied to a namespace, so they are not allowed.

The following sample generates CS1671:

// CS1671.cs
public namespace NS // CS1671
{

}

Community Additions

ADD
Show:
© 2014 Microsoft