/// <summary>
 /// Change null value to an empty string for display in textbox.
 /// </summary>
 /// <param name="value">the proposed value to convert.</param>
 /// <param name="targetType">they type to convert to.</param>
 /// <param name="parameter">binding parameters to evaluate.</param>
 /// <param name="culture">culture of the application.</param>
 /// <returns></returns>
 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     return(EmptyStringToNullConverter.convert(value, targetType, parameter, culture));
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="DynamicCodedValueDomainColumn"/> class.
        /// </summary>
        public DynamicCodedValueDomainColumn()
            : base()
        {
            dateTimeConverter = new DateTimeFormatConverter();
            nameConverter = new DynamicCodedValueSourceConverter();
            lookupConverter = new DynamicCodedValueSourceLookupConverter();
            selectedConverter = new DynamicCodedValueSourceSelectedItemConverter();

            nullableSources = new CodedValueSources();
            #if !SILVERLIGHT
            stringToPrimitiveTypeConverter = new StringToPrimitiveTypeConverter();
            #else
            emptyStringToNullConverter = new EmptyStringToNullConverter();
            #endif
        }