Accessing Class Properties

  • Thread starter Thread starter Joel Reinford
  • Start date Start date
J

Joel Reinford

I have a VB.NET class with a number of properties and would like to be able
to reference them in an index fashion. Is this possible and if so, how would
I set this up?

Psuedo code
xyz = MyClass("PropertyName").Value

Joel Reinford
Data Management Solutions LLC
 
* "Joel Reinford said:
I have a VB.NET class with a number of properties and would like to be able
to reference them in an index fashion. Is this possible and if so, how would
I set this up?

Psuedo code
xyz = MyClass("PropertyName").Value

'CallByName'...

.... or Reflection, but that's more complicated.
 
Can you give an example using Reflection?

Joel

Herfried K. Wagner said:
'CallByName'...

... or Reflection, but that's more complicated.
 

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