Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread J. Merrill
Would it break your app-design rules to move the definition of IUtility into its own assembly? If you did that, and everything that uses the IUtility methods, or that implements them, references the common definition of IUtility that's in the IUtility-defining assembly, you would not get "Speci

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread Chris Day
ced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of dave wanta Sent: Monday, 2 May 2005 3:28 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime "You could create proxy for instance of A2 " This is what I did. I creat

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread dave wanta
nfo.Invoke(...). Thanks a bunch, Dave - Original Message - From: "Ales Pour" <[EMAIL PROTECTED]> To: Sent: Sunday, May 01, 2005 11:15 AM Subject: Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime You could create proxy for instance of A2 - see RealProxy et

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread Ales Pour
You could create proxy for instance of A2 - see RealProxy etc to satisfy IUtility type checking, and redirect calls to A2 instance, for example. Or you may consider changing desing of your app a it ;-) Regards, Ales On Sun, 1 May 2005 07:51:02 -0500, dave wanta <[EMAIL PROTECTED]> wrote: >Hi

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread Philip Nelson
--- dave wanta <[EMAIL PROTECTED]> wrote: > Hi Phillip, > Thanks for the reference. I checked it out, but it appears as though this > would be another DLL i would need to add to the class. Unfortunately, I'm > looking for some direction using code, without any more dlls. And I think > the license r

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread dave wanta
heers! Dave - Original Message - From: "Philip Nelson" <[EMAIL PROTECTED]> To: Sent: Sunday, May 01, 2005 8:01 AM Subject: Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime > --- dave wanta <[EMAIL PROTECTED]> wrote: > > Hi All, > > I

Re: [ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread Philip Nelson
--- dave wanta <[EMAIL PROTECTED]> wrote: > Hi All, > Is it possible to dynamically implement (or apply) an interface at runtime? This is the stuff AOP is made of ;-) You probably don't need a full AOP framework for this though. DynamicProxy from the Castle on Rails project would probably do what

[ADVANCED-DOTNET] Dynamically Implementing an interface at runtime

2005-05-01 Thread dave wanta
Hi All, Is it possible to dynamically implement (or apply) an interface at runtime? I kind of doubt this, but I'm hoping I'm missing something. Hopefully I can explain this. I have two assemblies. A1 (parent) and A2 (a utility object). They have no dependencies/references to each other. However, A