🤔

CS1022#

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

Every brace needs to be a matching set.

Resolution#

Check that every opening and closing brace is a pair:

namespace Example
{
public class Foo
{

}
}
} // This bracket should be removed

A functioning IDE underlines the approximate area of the issue in red. Code should also be well formatted so it makes it easy to spot mismatching braces.

information

If your IDE isn't showing errors, you will need to configure your IDE. Unformatted code may also be a sign of improper configuration.