ekonbenefits / impromptu-interface

Static interface to dynamic implementation (duck casting). Uses the DLR combined with Reflect.Emit.
Apache License 2.0
656 stars 67 forks source link

Feature: Proxy's based on abstract types and concreate types with virtual methods #3

Open jbtule opened 11 years ago

jbtule commented 11 years ago

Project Member Reported by jtuley, Apr 16, 2011 The method generation code would be the same pretty much. Proxy class creation code would need to change but should be easy. Would need a different target property name to reduce collisions. ActLike syntax wouldn't work would need new specific syntax

idea:

Proxy.New(params object[] args).Build(object target, params Type[] otherInterfaces)

Proxy.New(Type type, params object[] args).Build(object target, params Type[] otherInterfaces)