public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if (null != value && this.CanConvertTo(context, destinationType))
{
string s = string.Empty;
ReinstallModes mode = (ReinstallModes)value;
// Return the REINSTALLMODE property value form.
foreach (ReinstallModes val in Enum.GetValues(typeof(ReinstallModes)))
{
if (0 != (val & mode))
{
s += ModeToCharMap[val];
}
}
return s;
}
return base.ConvertTo(context, culture, value, destinationType);
}