Wednesday, May 25, 2005

Fundamental types in C#

Something I miss in C# is the ability to tell if an object is of "fundamental type". I often need to check whether a object is "primitive" (obj.GetType().IsPrimaitive), or System.Decimal, or System.DateTime, or System.String for that matter.

On a similar theme, why is there no C# type alias for System.DateTime, it seems like a obvious omission...

0 Comments:

Post a Comment

<< Home