I'm using the API to update User information, but sometimes the source data is a different data type than the datatype of the User property being updated. How can I get the User Property Types?
For example, running the following:
UserInfo ui = UserInfoProvider.GetFullUserInfo("test");
ui.SetValue("joinDate", "not a date string");
Will throw an error about a mismatched type, since the User property "joinDate" is of Type DateTime.
IF a value already exists in "joinDate", I can do: ui["joinDate"].GetType() to get the Type, but if ui["joinDate"] is null, I can't.
I've tried looking for a property of the UserInfo object that contains this information but don't see anything obvious. I've also tried using Reflection, but a null value still returns null PropertyInfo...