// Exceptions:
        //   System.NotSupportedException:
        //     value is NULL or cannot be converted to a System.Windows.Media.DoubleCollection.
        /// <summary>
        /// Converts from an object of a given type to a System.Windows.Media.DoubleCollection object.
        /// </summary>
        /// <param name="context">The conversion context.</param>
        /// <param name="culture">The culture information that applies to the conversion.</param>
        /// <param name="value">The object to convert.</param>
        /// <returns>
        /// Returns a new System.Windows.Media.DoubleCollection object if successful; otherwise,
        /// NULL.
        /// </returns>
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value == null)
            {
                throw GetConvertFromException(value);
            }

            if (value is string)
            {
                return(DoubleCollection.INTERNAL_ConvertFromString((string)value));
            }

            return(base.ConvertFrom(context, culture, value));
        }