Microsoft.VisualStudio.Project.FrameworkNameConverter.ConvertTo C# (CSharp) Method

ConvertTo() public method

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
return object
        public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
        {
            if (destinationType == typeof(string))
            {
                var name = value as FrameworkName;
                if (name != null)
                {
                    return name.FullName;
                }
            }

            return base.ConvertTo(context, culture, value, destinationType);
        }