Let one assembly implement an internal interface of the caller


i've created 1 of these nifty proxy creators implments interface you. works fine on public interfaces, internal interfaces run trouble. proxy class resides in own assembly, , has following simple usage:

type impl = proxy.create(type interfacetype);

above method create it's own dynamic assembly , if caller supplies internal interface type, typebuilder.createtype throw exception. thought somehow remidy letting caller supply modulebuilder used host type:

type impl = proxy.create(type interfacetype, modulebuilder mb);

however havn't got work. idéas? how let 1 assembly implement internal interface of caller?

document problem.  paste exception message, stack trace , snippet of code causes it.
hans passant.


.NET Framework  >  Common Language Runtime Internals and Architecture



Comments

Popular posts from this blog

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

Azure DocumentDB Owner resource does not exist

SQL Server 2008 - High Memory Usage