/// <summary> /// Converts the given object to the type of this converter, using the specified context and culture information. /// </summary> /// <param name="context">An <see cref="ITypeDescriptorContext"/> that provides a format context.</param> /// <param name="culture">A <see cref="CultureInfo"/>. If null is passed, the current culture is assumed.</param> /// <param name="value">The <see cref="object"/> to convert.</param> /// <returns>An <see cref="object"/> that represents the converted value.</returns> public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) { if (value is string) { return(BinaryString.CreateFromBase64String((string)value)); } return(base.ConvertFrom(context, culture, value)); }