public ConvertTo ( ITypeDescriptorContext context, System culture, object value, |
||
context | ITypeDescriptorContext | The container representing this System.ComponentModel.TypeDescriptor. |
culture | System | Culture info for assembly |
value | object | Value to convert. |
destinationType | Type to convert to. | |
return | object |
public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
{
Type typeValue = value as Type;
if (typeValue == null)
{
throw new ArgumentException(string.Format(Properties.Resources.Culture, Properties.Resources.ExceptionCanNotConvertType, typeof(Type).Name));
}
return (typeValue).AssemblyQualifiedName;
}