Is There a Way to Avoid This Mess?

  • Thread starter Thread starter C# Learner
  • Start date Start date
C# Learner said:
Jon said:
That I don't know. It would be okay if a double could accurately
represent any other data type, but it clearly can't represent all longs
or decimals. (I think it's okay with all of the other types.)

Hmm... I wonder if they would ever consider resolving* this apparent
inconsistency in the future.

* [by adding TryParse() to all relevant types]

http://weblogs.asp.net/bclteam/archive/2003/10/22/49710.aspx

excerpt:

"TryParse methods have been added to all the base datatypes in Whidbey
(previously, TryParse was only available on the Double type)."
 
Back
Top