mardi 1 octobre 2019

How to get a member type from MemberInfo?

I search for Delegate members so I do 3 loops: search throw fields/properties/events.

I see that FieldInfo/PropertyInfo/Eventinfo are derived from MemberInfo, so I tried to use MemberInfo[].

If I have a FieldMember, I use x.FieldType, property - x.PropertyType

Is there any way to get Delegate type from MemberInfo?





Aucun commentaire:

Enregistrer un commentaire