I have a property in a dll that i am using using Reflection feature in C#. I would like to set the property and the property type is a delegate type.
Please let me know the steps involved in setting the property using the Reflection.
I know that SetValue method need to be used to do this, but don't know how to set the property of the delegate type.
SetValue(objectName, 1, null) is to set an integer property using reflection, but don't know how to set the property of the delegate type.
How to declare a variable of the delegate property type and initialize it using reflection?
Please provide solution with an example.
Thanks, Raghu Devisetti
Aucun commentaire:
Enregistrer un commentaire