I was writing the following code and any variable that I created dragged an error:
struct ParagraphInfo
{
public ParagraphInfo(string text)
{
}
int i;
}
The error is:
Field 'ConsoleApplication15.Program.ParagraphInfo.i'
must be fully assigned before control is returned to the caller
The constructor was underlined as the source of the error and once I deleted it the error disappeared.
What is going on?
: this()after your constructor signature definition?