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
 
Back
Top