/// <summary> /// Self-explanatory /// </summary> /// <param name="arg"></param> /// <returns></returns> private bool HandleCsvFile(string arg) { if (!arg.Equals(csvFile)) { return(false); } if (Report != null) { throw new ArgumentException("Multiple reports requested, this is not allowed."); } ExpectReadyForNewState(arg); Report = new CSVReport(); ParseState = ProcessorState.Default; return(true); }
/// <summary> /// Self-explanatory /// </summary> /// <param name="arg"></param> /// <returns></returns> private bool HandleCsvFile(string arg) { if (!arg.Equals(csvFile)) return false; if (Report != null) throw new ArgumentException("Multiple reports requested, this is not allowed."); ExpectReadyForNewState(arg); Report = new CSVReport(); ParseState = ProcessorState.Default; return true; }