Return pointer-array to vb.net class or any better idea?

N

Nip

Hello eyerybody

I have got an array of objects of the same class. These objects might be for
example visible or not. Because of the performance I donot want to check
these properties with select...case. I would solve this using an array of
pointers of which the objects have certain properties, but I have no idea
how to do this, because everything has to be compatible with vb.net. Is this
possible at all or do you have a better idea how to solve this problem?
I could write the class itself in vb, c# or c++, but it has to work...

Greetz
Lukas Cavigelli
 
J

Jon Skeet [C# MVP]

Nip said:
Hello eyerybody

I have got an array of objects of the same class. These objects might be for
example visible or not. Because of the performance I donot want to check
these properties with select...case. I would solve this using an array of
pointers of which the objects have certain properties, but I have no idea
how to do this, because everything has to be compatible with vb.net. Is this
possible at all or do you have a better idea how to solve this problem?
I could write the class itself in vb, c# or c++, but it has to work...

It's not at all clear what the problem is... just declare the array to
be an array of the right type, and everything should be fine.
 

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