2008/01/28

What's the different among Parse(), TryParse(), and ConvertTo() ?

These three methods are all converting data from one type to another, but why we have three ways (methods) for the same purpose? What's the reason for that? What's the differences? Here is a very good article for all these question: Performance Profiling Parse vs. TryParse vs. ConvertTo.
After reading this, I finally know what's the differences and when to use them. There are always people doing such a detail research for us. Thanks!

No comments:

Post a Comment