I have a COM object (which I did not create), and when I use the method Type.GetProperties(), it returns an array of PropertyInfo, but the thing is, it is returning a bunch of properties that don't usually show up through intellisense when accessing the properties directly (ie. comObject->property1). Is there a way to make it so that the only PropertyInfo that is returned are the ones that I see in when using intellisense? I've tried doing this:
But it ends up returning 0 properties. Any ideas? Thanks.Code:Type.GetProperties(BindingFlags.Public)




Reply With Quote