adam_pedley
asked on
Reflection to get Variable Names and Values
Hi
I have a function as such
Public Function Test as string
Dim i as integer = 5
Dim s as string = "testing"
End Function
In that function how could i use reflection to get all the variables and values that exist inside this function.
So using a command i could get a string that says
i - Integer - 5
s - String - "testing"
or something similar
Thanks
Adam
I have a function as such
Public Function Test as string
Dim i as integer = 5
Dim s as string = "testing"
End Function
In that function how could i use reflection to get all the variables and values that exist inside this function.
So using a command i could get a string that says
i - Integer - 5
s - String - "testing"
or something similar
Thanks
Adam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Brilliant!
Thank you
Im not using 2005 yet but am in the middle of an upgrade to 2005.
I must say .NET 2.0 has really got its act together.
Thank you
Im not using 2005 yet but am in the middle of an upgrade to 2005.
I must say .NET 2.0 has really got its act together.
This will help you
http://www.dotnet247.com/247reference/msgs/35/177502.aspx
Cheers!