Access Class Members Via Name

  • Thread starter Thread starter kirklarsen
  • Start date Start date
K

kirklarsen

I have a class which stores some shared variables that I want to access
from another project. The class is in a DLL which is being accessed
using reflection in a separate appdomain. Because of this, I need to
be able to have a method in another class (in the same project as the
data class) which can access the class members by name. Something
similar to this:

Public Shared Function GetValue(ByVal name As String) As Object
Return MyClass.Name.Value
End Sub

I hope that I've explained this clearly enough.

Thanks!
 
Why don't you instance this class, or is it something as a running
windowservice?

Cor
 

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