Thanks,
this is the code that does what I require
pi is PropertyInfo .
returns the base typename in the form of a string from a reflected nullable
base type.
string typename;
Type ut = Nullable.GetUnderlyingType(pi.PropertyType);
if(ut == null)
{
typename = pi.PropertyType.Name;
}
else
{
typename = ut.Name;
}
On 10/2/06, Ryan Heath <[EMAIL PROTECTED]> wrote:
Dave,
How about
Nullable.GetUnderlyingType(Type nullableType) ?
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com