tag:blogger.com,1999:blog-9191282505396518907.post7526509348466039387..comments2011-11-21T07:03:43.803-08:00Comments on If Error Throw New Brick: C# - The dangers of int.Parse() on non-english systemsdonblashttp://www.blogger.com/profile/01580886845150965790noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-9191282505396518907.post-44489937792514109202010-07-10T09:42:47.376-07:002010-07-10T09:42:47.376-07:00Yeah, if the article wasn't clear it is an eit...Yeah, if the article wasn't clear it is an either or: Each parse needs to be called under the thread culture being invariant or it needs to have the second parameter passed in. <br /><br />There are some chunks of code where I'm going to call Parse() a bunch, such as save load and reading XML files. For those, I'll set the thread wide culture and reset it later. <br /><br />For others, it is a one off, and just setting the second parameter is easier.donblashttps://www.blogger.com/profile/01580886845150965790noreply@blogger.comtag:blogger.com,1999:blog-9191282505396518907.post-58469049895709673532010-07-10T07:02:47.179-07:002010-07-10T07:02:47.179-07:00Um, I don't think you need to actually set the...Um, I don't think you need to actually set the thread culture if you're going to specify the culture explicitly in the parse call...Edhttps://www.blogger.com/profile/12186766341193266503noreply@blogger.com