Is the TypeConverter attribute supported in CF 2.0?

  • Thread starter Jerod Houghtelling
  • Start date
J

Jerod Houghtelling

Does anybody know if the TypeConverter attribute is suppored in CF
2.0? I have found an example of a person using it claing to be in the
CF world... But I get a compile error that TypeConverter is not an
attribute class. MSDN seems to show that it isn't supported which
would back up the compiler error.

Here is a link to the example that I found:
http://groups.google.com/group/micr...d73d?lnk=gst&q=typeconverter#4d3059ecce1ed73d

What I'm trying to do is databind an object without using the Parse
and Format methods. In the full framework we have implemented this by
creating a class derived from TypeConverter and all of our Business
Objects specify this class by using the TypeConverter attribute. Does
anybody know how I can convert a string to my Business Object in the
business layer (textbox binding). Right now I have to do it in the UI
layer using code like this...

private void orderNumberBinding_Parse( object sender, ConvertEventArgs
e )
{
e.Value = new OrderNumber( e.Value as string );
}

Any help is appreciated. Thank you!
Jerod
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top