> > The problem with InvokeMember is that it's a lot of work to > > use for possibly hundreds of different methods calls. > > I take this to mean that you'd rather have clients doing this: > > IXyz x = ... > x.DoSomething(); > > rather than this: > > typeof( IXyz ).InvokeMember( "DoSomething", ... ); > > Correct?
Yes, exactly. > Have you looked at my Interposer example [1], yet? It may be > just what > you're looking for -- giving your clients an early bound view > while doing > late binding under the covers. Looks like what I want, yes. I can't see straight away how to apply the proxy to a late bound legacy COM component, though. But I'll play around with it a bit and see what I find out. - Petter You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.