CodePlexProject Hosting for Open Source Software
An unexpected error has occured.
There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Voted
No files are attached
kazimanzurrashid wrote Sep 13, 2010 at 2:51 PM
luizbon wrote Sep 22, 2010 at 2:54 PM
public class EntityConverter: TypeConverter { public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) { return sourceType == typeof(string) ? true : base.CanConvertFrom(context, sourceType); } public static void AssignTypeConverter<TType>() { TypeDescriptor.AddAttributes(typeof(TType), new TypeConverterAttribute(typeof(EntityConverter))); } }
public class ConfigureTypeConverter: BootstrapperTask { public override TaskContinuation Execute() { EntityConverter.AssignTypeConverter<Data>(); EntityConverter.AssignTypeConverter<TextBox>(); return TaskContinuation.Continue; } }
Sign in to add a comment or to set email notifications
Keyboard shortcuts are available for this page.