public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
if ((value is CopyToOutputDirectoryBehavior || value == null) && destinationType == typeof(string))
{
string result = null;
if (value == null)
result = SR.GetString(CopyToOutputDirectoryBehavior.DoNotCopy.ToString(), culture);
else
result = SR.GetString(((CopyToOutputDirectoryBehavior)value).ToString(), culture);
if (result != null)
return result;
}
return base.ConvertTo(context, culture, value, destinationType);
}