tags:

views:

36

answers:

1

Wanted for property grid, in the PropertyType function of the class derived from PropertyDescriptor, but I don't want an actual DateTime object - I'll just convert it to and from String in SetValue and GetValue.

+2  A: 

Type the following

Type t = typeof(DateTime);

C++/CLI equivalent as asked for in comments

Type^ t = DateTime::typeid;
JaredPar
I'm using c++ - doesn't recognize typeof
Elliott
@Elliot, added the C++/CLI equivalent.
JaredPar
works great - thanks
Elliott