Is there a faster way to access a property member of a class using reflection?
- by Ross Goddard
I am currently using the following code to access the property of an object using reflection:
Dim propInfo As Reflection.PropertyInfo = myType.GetProperty(propName)
Dim objValue As Object = propInfo.GetValue(myObject, Nothing)
I am having some issues with the speed since this type of code is being called many times and is causing some…