|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Access Class Members Via NameI 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 <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! >
Windows Service Cannot Move Files
Stopping Attributes.Add from converting my JavaScript event code to HTML 2 Gig Print Spooler process Fastest way to update a Picturebox's image Dispose of Notifier Icon hiding properties or methods in inherited class Dynamic Properties converting API call Editing XML Document Sub Main Ends so does the application |
|||||||||||||||||||||||