I assume Type.GetTypeFromProgID(myCom.myObj) will throw an exception if your class has set the attribute [ComVisible(false)], meaning it will only work on a COM interface (enabled by default in C# I believe).
Also, I believe, there' no guarantee that the same framework type implements the interface defined by the ProgId. You would have to override that behaviour though. If you have an instance of your own class I would suggest using GetType rather than GetTypeFromProgID to avoid the potential of marshaling out to COM, unless you need to. http://www.peterRitchie.com/ On Tue, 3 Jan 2006 11:33:23 EST, Young <[EMAIL PROTECTED]> wrote: >If I have com dll and class respectively as myCom, and myObj, > >will type.GetType(myCom.myObj) works just as >type.GetTypeFromProgID(myCom.myObj)? > =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
