tag:blogger.com,1999:blog-9116426555555977609.post3672908457766890142..comments2014-09-25T09:28:41.298+02:00Comments on .Net, Ajax, JavaScript Stuff: Non expected exception on IPAddress.TryParseDamianhttp://www.blogger.com/profile/02395547672128450032noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-9116426555555977609.post-50224320631764223312012-03-07T18:29:18.957+01:002012-03-07T18:29:18.957+01:00While all of the &#39;standard&#39;, numeric types...While all of the &#39;standard&#39;, numeric types indeed implement TryParse that never throws, this behaviour is only expected by convention. Examples with documented thrown exceptions (apart from IPAdress.TryParse) include DateTime and Enum. Although IPAddress is particularly nasty in this regard, as it will also throw when it encounters non-ASCII characters in the String.Leszek Ciesielskihttps://www.blogger.com/profile/13638993878949515686noreply@blogger.com