public ParseResult Parse(string text, DateTime currentDate) { var parser = new GeneralParser(modelsDir, text); return new ParseResult { DateAndTime = new DateTimeParser(modelsDir).Parse(text, currentDate), Place = parser.ParsePlace(), Type = parser.ParseType() }; }
public ParseResult Parse(string text, DateTime currentDate) { var parser = new GeneralParser(modelsDir, text); return(new ParseResult { DateAndTime = new DateTimeParser(modelsDir).Parse(text, currentDate), Place = parser.ParsePlace(), Type = parser.ParseType() }); }