Fix Guid.TryParse to not throw FormatException
authorstephentoub <stoub@microsoft.com>
Mon, 22 Feb 2016 19:58:49 +0000 (14:58 -0500)
committerstephentoub <stoub@microsoft.com>
Mon, 22 Feb 2016 21:33:53 +0000 (16:33 -0500)
commit6f387a835b4da5fce3bc199bd4286f15467e2f52
treee712d6ff0cd0d6454e1542aea80075bbc922ac1c
parent98c2b749ef5b7441f79d2ce1cfaf2665b7f138cf
Fix Guid.TryParse to not throw FormatException

In certain situations, e.g.
```
Guid g;
Guid.TryParse("{0xdddddddd, 0xdddd, 0xdddd,{0xdd0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd}}", out g);
```
Guid.TryParse is throwing a FormatException rather than returning false.  This is due to a call to Convert.ToInt32 on one code path that's throwing.
src/mscorlib/src/System/Guid.cs