Ejemplo n.º 1
0
 public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
 {
     if (destinationType == typeof(string))
     {
         var v = value as StringOrPrimitive <UInt32>;
         if (v != null)
         {
             return(StringOrPrimitiveConverter <UInt32> .StringConverter(v));
         }
     }
     return(null);
 }
 protected internal override string ConvertValueToString(StringOrPrimitive <UInt32> val)
 {
     return(StringOrPrimitiveConverter <UInt32> .StringConverter(val));
 }