D
Don
Say I have a class like so:
Public Class MyClass
Public Prop1 as Integer
Public Prop2 As Integer
Public Prop3 As Integer
End Class
Is it possible to retrieve a list of the variables or objects declared
within an instance of that class if they are declared with Public (or
Friend) scope?
e.g.
Public Class SomeOtherClass
Public Sub Experiment
Dim obj As MyClass = New MyClass
' Get list of variables declared within obj
'
' List the variable names:
' "Prop1"
' "Prop2"
' "Prop3"
End Sub
End Class
Or can something like this only be done with Properties and Methods?
- Don
Public Class MyClass
Public Prop1 as Integer
Public Prop2 As Integer
Public Prop3 As Integer
End Class
Is it possible to retrieve a list of the variables or objects declared
within an instance of that class if they are declared with Public (or
Friend) scope?
e.g.
Public Class SomeOtherClass
Public Sub Experiment
Dim obj As MyClass = New MyClass
' Get list of variables declared within obj
'
' List the variable names:
' "Prop1"
' "Prop2"
' "Prop3"
End Sub
End Class
Or can something like this only be done with Properties and Methods?
- Don