public void SetErrors(int errorCount) { var errors = new IJSLintError[errorCount]; for (int i = 0; i < errorCount; i++) { var number = i + 1; errors[i] = new JSLintErrorFake(this.FileName, number); } this.Errors = errors; }