public override object ConvertTo(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object value, Type destinationType)
 {
     if (destinationType == null)
     {
         throw new ArgumentNullException("destinationType");
     }
     if (value != null && value is FigureLength)
     {
         FigureLength fl = (FigureLength)value;
         if (destinationType == typeof(string))
         {
             return(FigureLengthConverter.ToString(fl, cultureInfo));
         }
         if (destinationType == typeof(InstanceDescriptor))
         {
             ConstructorInfo constructor = typeof(FigureLength).GetConstructor(new Type[]
             {
                 typeof(double),
                 typeof(FigureUnitType)
             });
             return(new InstanceDescriptor(constructor, new object[]
             {
                 fl.Value,
                 fl.FigureUnitType
             }));
         }
     }
     throw base.GetConvertToException(value, destinationType);
 }
 /// <summary>Creates a <see cref="T:System.String" /> representation of this <see cref="T:System.Windows.FigureLength" />.</summary>
 /// <returns>A <see cref="T:System.String" /> representation of this <see cref="T:System.Windows.FigureLength" />.</returns>
 // Token: 0x0600040B RID: 1035 RVA: 0x0000B879 File Offset: 0x00009A79
 public override string ToString()
 {
     return(FigureLengthConverter.ToString(this, CultureInfo.InvariantCulture));
 }