C# Error
CS1513 – } expected
Reason for the Error & Solution
} expected
The compiler expected a closing curly brace (}
) that was not found.
The following sample generates CS1513:
// CS1513
namespace y // CS1513, no close curly brace
{
class x
{
public static void Main()
{
}
}