TypeTypeConverter vs. TypeNameConverter

Some time ago I complained about the fact that a TypeConverter for Types was missing from the .NET Framework.

At the time I had search for one in the framework but only found internal or private implementations.

As it turns out, the version 2.0 of the .NET Framework introduced a TypeNameConverter that does practically the same thing as my TypeTypeConverter, beside the poor naming.

I say poor naming because the documentation for TypeConverter states that “The most common type of converter is one that converts to and from a text representation.“. This converter does not convert from text to a Type Name but to an instance of Type. Nevertheless, it’s in the framework and you should use this one instead of mine.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>