Can I make the compiler and the CLR ignore non implemented interfaces on my types?

Posted by Thiado de Arruda on Stack Overflow See other posts from Stack Overflow or by Thiado de Arruda
Published on 2010-05-12T19:51:56Z Indexed on 2010/05/12 19:54 UTC
Read the original article Hit count: 199

Filed under:
|
|
|
|

I would like to define a type implementing a certain interface, however I would only implement it in a proxy at runtime. I can see two obstacles in this scenario :

1-Make the compiler ignore non implemented interfaces. 2-Make the CLR ignore(or at least delay) the TypeLoadException with the following description : "Method SOMEMETHOD in type SOMETYPE from assembly SOMEASSEMBLY does not have an implementation."

Is something like this possible?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET