Friday, January 11, 2008

Quiz of the day

Identify the purpose of this method.

internal static object ConvertFrom(PropertyInfo pi, string value)
{
TypeConverter tc = TypeDescriptor.GetConverter(pi.PropertyType);
if (tc.CanConvertFrom(typeof(string)))
return tc.ConvertFrom(value);
else
return null; }

No comments: