FoxPro and .NET Interop
DotNetBrige - list methods and properties
Gravatar is a globally recognized avatar based on your email address. DotNetBrige - list methods and properties
  Tom Green
  All
  Jun 1, 2025 @ 04:13pm

Hi Rick,

With wwDotNetBridge, is there any way get a list of the methods and properties of an object obtained with CreateInstance()

Something like PEMSTATUS() in VFP ?

Or is this something I have to do with another too like JetBrains dotPeek ?

Gravatar is a globally recognized avatar based on your email address. re: DotNetBrige - list methods and properties
  Rick Strahl
  Tom Green
  Jun 1, 2025 @ 06:43pm

Yes, but it's not built in.

You can do this manually with obj.GetType() and then parse through the Reflection types, but this is going to be very tedious from FoxPro.

From there you can dig into methods and properties and for methods into parameters etc. You'll be better off building the objects up in a small .NET module and calling that from FoxPro with all the parsed object data.

I've also built a library that does just that which I use to import types for documentation:

You should be able to call that relatively easily from FoxPro as it has a fairly straight forward interface. Used that in Help Builder and now using it Documentation Moster. Also use it Markdown Monster for displaying and editing configuration options and their documentation.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: DotNetBrige - list methods and properties
  Tom Green
  Rick Strahl
  Jun 3, 2025 @ 03:29pm

Thanks Rick.

If you had a method in wwDotNetBridge to do it, that would be really cool. (Maybe just connect to your Westwind.TypeImporter.) And then find someone to adapt VFP's IntelliSense to show them.

Excuse my dreaming here... I'm sure you have tons of other ideas — of more important stuff you want to do.

Gravatar is a globally recognized avatar based on your email address. re: DotNetBrige - list methods and properties
  Rick Strahl
  Tom Green
  Jun 4, 2025 @ 05:43am

That's not going to happen, but easy enough for you to build yourself 😄

+++ Rick ---

© 1996-2025