Is there an equivalent to Java's ClassFileTransformer in .NET?
Posted
by Alix
on Stack Overflow
See other posts from Stack Overflow
or by Alix
Published on 2010-04-11T13:56:09Z
Indexed on
2010/04/11
14:23 UTC
Read the original article
Hit count: 247
I've been searching for this for quite a while with no luck so far. Is there an equivalent to Java's ClassFileTransformer
in .NET? Basically, I want to create a class CustomClassFileTransformer
(which in Java would implement the interface ClassFileTransformer
) that gets called whenever a class is loaded, and is allowed to tweak it and replace it with the tweaked version.
I know there are frameworks that do similar things, but I was looking for something more straightforward, like implementing my own ClassFileTransformer
. Is it possible?
© Stack Overflow or respective owner