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.
views:
36answers:
1
+2
A:
Type the following
Type t = typeof(DateTime);
C++/CLI equivalent as asked for in comments
Type^ t = DateTime::typeid;
JaredPar
2010-08-23 18:53:08
I'm using c++ - doesn't recognize typeof
Elliott
2010-08-23 18:56:39
@Elliot, added the C++/CLI equivalent.
JaredPar
2010-08-23 18:58:20
works great - thanks
Elliott
2010-08-23 18:59:19