ConvertTo() 공개 메소드

public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
리턴 object
예제 #1
0
		public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
		{
			TypeTypeConverter converter = new TypeTypeConverter();

			value = converter.ConvertFrom(context, CultureInfo.CurrentCulture, value);
			value = base.EditValue(context, provider, value);
			value = converter.ConvertTo  (context, CultureInfo.CurrentCulture, value, typeof(string));

			return value;
		}