Adf.ObjectFactory.ObjectBuilder.Configuration.AssemblyQualifiedTypeNameConverter.ConvertTo C# (CSharp) Method

ConvertTo() public method

Returns the assembly qualified name for the passed in Type.
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext The container representing this System.ComponentModel.TypeDescriptor.
culture System Culture info for assembly
value object Value to convert.
destinationType System.Type Type to convert to.
return object
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
        {
            Type typeValue = value as Type;
            if (typeValue == null)
            {
                throw new ArgumentException(string.Format(Resources.Culture, Resources.ExceptionCanNotConvertType, typeof(Type).Name));
            }

            if (typeValue != null) return (typeValue).AssemblyQualifiedName;
            return null;
        }
AssemblyQualifiedTypeNameConverter