I have an issue on reflection.
I have an ComObject's named Item (NewItem-> Instance). (interface)
For some reason I need some properties of this object.
var Item = typeof(IItem);
var props = Item.GetProperties();
foreach (var prop in props)
{
var property = Item.GetProperty(prop.Name);
var Propertytype = property.GetType().Name;
if (Propertytype == "RuntimePropertyInfo")
{
var method = property.GetGetMethod();
var spesific = method.Invoke(NewItem, null);// spesific has dynamic Members...
}
}
And I don't know how to get the Dynamic members. there are some classes involved... so I realy do not know from where the property "Spesific" // RuntimeProperty Info comes from...
Within the Item Class itself there is no Property like this.
In normal way I could instantiate the spesific to an object itself.
the specific -> Method has all information for a defined Object like a Matrix or Textfield... this is the ComObject itself. The object Item includes all basic information according for placement or other things like some standard methods...
Any ideas?