Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Unterminated string literal
The compiler detected an ill-formed string literal.
Example
The following sample generates CS1039. To resolve the error, add the terminating quotation mark.
// CS1039.cs
public class MyClass
{
public static void Main()
{
string b = @"hello, world; // CS1039
}
}
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.