public override bool RaiseReportEmptyLine(long lineNo) { EventHandler <ChoEmptyLineEventArgs> emptyLineFound = EmptyLineFound; if (emptyLineFound == null) { return(true); } var ea = new ChoEmptyLineEventArgs(lineNo); emptyLineFound(this, ea); return(ea.Continue); }
public override bool RaiseReportEmptyLine(long lineNo) { EventHandler <ChoEmptyLineEventArgs> emptyLineFound = EmptyLineFound; if (emptyLineFound == null) { if (Configuration.IgnoreEmptyLine) { return(true); } else { return(false); } //throw new ChoParserException("Empty line found at [{0}] location.".FormatString(lineNo)); } var ea = new ChoEmptyLineEventArgs(lineNo); emptyLineFound(this, ea); return(ea.Continue); }