robertwilczynski / nChronic

A natural language date/time parser ported from Ruby
MIT License
67 stars 34 forks source link

Add support for TryParse #10

Open ramiabughazaleh opened 8 years ago

ramiabughazaleh commented 8 years ago

Thank you for nChronic.

I would like to request support for TryParse.

In this way, TryParse can be called instead of allowing the Parse method to throw an exception.

This is helpful if there's a spelling mistake in the phrase that is parsed, in which case a generic "System.NullReferenceException: Object reference not set to an instance of an object." is currently thrown with no indication of a more meaningful error message.

Thank you.