Home All Groups Group Topic Archive Search About

Access Class Members Via Name

Author
24 Jul 2006 10:58 PM
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!

Author
25 Jul 2006 5:33 AM
Cor Ligthert [MVP]
Why don't you instance this class, or is it something as a running
windowservice?

Cor

<kirklar***@gmail.com> schreef in bericht
Show quoteHide quote
news:1153781921.887634.301710@75g2000cwc.googlegroups.com...
>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!
>