This documentation is archived and is not being maintained.

Compiler Error CS1022

Type or namespace definition, or end-of-file expected

A source-code file does not have a matching set of braces.

The following sample generates CS1022:

// CS1022.cs
namespace x
{
}
}   // CS1022
Show: