Reading public constants from VBComponents in C#? I don't think C# knows how....

  • Thread starter Thread starter W1ld0ne [MCSD]
  • Start date Start date
W

W1ld0ne [MCSD]

We are writing a C#.net component that uses a VB.net component, that has a
couple of public const's in it, but C# chooses not to see them. What's up
with that. The only way we can get it to work is to use public variable...
?!?

Anyone have any ideas on that?

Thanks
David Taylor
 
Hi,

You may try to apply the CLSCompliant attribute to the assembly containing
the VB .NET component and see what the compiler complains about...

In general, I think there should be no problem with constants. Have you also
checked the VB .NET component with the Object Browser? Probably it's just
IntelliSense that cannot see the constants?
 

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

Back
Top