/// <summary>Converts the specified object to a <see cref="T:System.Windows.FigureLength" />.</summary> /// <param name="typeDescriptorContext">Describes the context information of a type.</param> /// <param name="cultureInfo">Describes the <see cref="T:System.Globalization.CultureInfo" /> of the type being converted.</param> /// <param name="source">The object being converted.</param> /// <returns>The <see cref="T:System.Windows.FigureLength" /> created from converting <paramref name="source" />.</returns> // Token: 0x0600040E RID: 1038 RVA: 0x0000B8D4 File Offset: 0x00009AD4 public override object ConvertFrom(ITypeDescriptorContext typeDescriptorContext, CultureInfo cultureInfo, object source) { if (source == null) { throw base.GetConvertFromException(source); } if (source is string) { return(FigureLengthConverter.FromString((string)source, cultureInfo)); } return(new FigureLength(Convert.ToDouble(source, cultureInfo))); }