Esempio n. 1
0
 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
 {
     if (!(destinationType == typeof(string)))
     {
         return(base.ConvertTo(context, culture, value, destinationType));
     }
     SchemaImporterExtensionElement.TypeAndName name = (SchemaImporterExtensionElement.TypeAndName)value;
     if (name.name != null)
     {
         return(name.name);
     }
     return(name.type.AssemblyQualifiedName);
 }