tags:

views:

46

answers:

1

Hello,

I'm writing a .NET component to be used both by other .net clients and by legacy applications via COM interop. During recearch I faced expected problem: there is no configuration in case assembly was invoked via interop.

So now I need to design a workaround for cases my component was invoked via COM (using some default configuration instead of client's). The question is - what is most convenient and correct way to determine whether the caller is COM component. Some properties or AppDomain state, probably?

Thanks in advance.

+2  A: 

You could get a clue from Assembly.GetExecutingAssembly()

Mark Redman