/// <devdoc>
        /// <para>Converts the given object to a <see cref='Gu.Units.LuminousFluxUnit'/>
        /// object.</para>
        /// </devdoc>
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            var text = value as string;

            if (text != null)
            {
                LuminousFluxUnit result;
                if (LuminousFluxUnit.TryParse(text, out result))
                {
                    return(result);
                }

                var message = $"Could not convert the string '{text}' to an instance of LuminousFluxUnit)";
                throw new NotSupportedException(message);
            }

            return(base.ConvertFrom(context, culture, value));
        }
 public bool Equals(LuminousFluxUnit other)
 {
     return(this.symbol == other.symbol);
 }
 public static bool TryParse(string text, out LuminousFluxUnit result)
 {
     return(UnitParser <LuminousFluxUnit> .TryParse(text, out result));
 }