samedi 21 janvier 2017

How to access properties dynamically from System_.Com object in c#

I am using a 3rd party DLL in c# and When I am accessing a list through its API then it is giving List object as Com Objects. And when I am going to access its properties dynamically using C# reflection then it is giving null values.

System.Reflection.PropertyInfo propertyInfo = type.GetProperty(PropertyName);

propertyInfo is null

Is there any alternative to do this?





Aucun commentaire:

Enregistrer un commentaire