RE: [Ikvm-developers] Re: Converting JavaBeans into .Net classes
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2005-04-16 21:39:01
|
Matthew Mastracci wrote: > Jeroen Frijters wrote: >=20 > > It works based on a map.xml file. I've a attached an=20 > > example bean and the xml file that describes the > > bean. It would be nice to have a tool that uses > > Introspector.getBeanInfo() (like I did in the main > > method of MyBean) to interrogate all the classes in > > a jar and then generate the xml file automatically. >=20 > This is fantastic... If this could support methods as well as=20 > properties, I might try to use this to .NETify the API of SWT without=20 > any code changes (binary only port), assuming that SWT=20 > doesn't use a lot of reflection internally. The map.xml doesn't (and won't) support modifying methods in this way, but even if it did it would be an incredibly painful way of accomplishing this. You're much better of "simply" wrapping the API in C#. Regards, Jeroen |