Chris Rolon [mailto:[EMAIL PROTECTED]] wrote:

> In the past I would have used a factory pattern for this
> behavior. I was just wondering if there was a better way using .Net.

I would still use the factory pattern, but you *can* technically use the
ProxyAttribute even for non-remote objects. All you're doing is hiding the
fact that a factory is in place with this approach though. The factory just
becomes your ProxyAttribute subclass. Usually though, a factory instantiates
a concrete type and returns it via some abstract interface... what exactly
is it that you need to intercept/do at instance creation?

Later,
Drew
.NET MVP

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to