Use the most readable version. These two are implemented almost exactly the same.
The only real difference is that the constructor is initialized to Guid.Empty before trying to parse. However, the effective code is identical.
Moreover, if Guid comes from user input, then Guid.TryParse will be better than any option. If this Guid hardcoded and always valid, any of the above options is perfectly reasonable.
Reed Copsey Aug 02 '11 at 17:27 2011-08-02 17:27
source share