Question about reflection...
-
I've read up on Relection.Emit and its uses and am amazed at the flexability. But, I'm wondering if it will do more. First, I declare Dynamic Assembly using the current running assembly. I can now add members to the assembly and even switch out a method body using the MethodRental class! But, is it possible to remove members from an assembly or class? What about adding or changing members to an exising member in the assembly? Is this in any way possible, or would the entire assembly or module have to be created from scratch?
-
I've read up on Relection.Emit and its uses and am amazed at the flexability. But, I'm wondering if it will do more. First, I declare Dynamic Assembly using the current running assembly. I can now add members to the assembly and even switch out a method body using the MethodRental class! But, is it possible to remove members from an assembly or class? What about adding or changing members to an exising member in the assembly? Is this in any way possible, or would the entire assembly or module have to be created from scratch?
I reckon you have just about reach the limits of Reflection.Emit. MS has a project called the CCI (Common Compiler Infrastructure) but it is not public and they couldnt tell me when it would be. leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it. -
I reckon you have just about reach the limits of Reflection.Emit. MS has a project called the CCI (Common Compiler Infrastructure) but it is not public and they couldnt tell me when it would be. leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.CCI is a Microsoft Research thing rather than a MS Corporate thing. Here's a powerpoint presentation about it. I'm fairly certain this library has be shared with the P7 folk working on other various compilers for the .NET platform. -- -Blake (com/bcdev/blake)
-
CCI is a Microsoft Research thing rather than a MS Corporate thing. Here's a powerpoint presentation about it. I'm fairly certain this library has be shared with the P7 folk working on other various compilers for the .NET platform. -- -Blake (com/bcdev/blake)
Thanx, I have seen that (not much info on it though :(). A partial package (usable) is included with AsmL.NET. I did find something interesting last nite. http://research.microsoft.com/phoenix[^] leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it. -
Thanx, I have seen that (not much info on it though :(). A partial package (usable) is included with AsmL.NET. I did find something interesting last nite. http://research.microsoft.com/phoenix[^] leppie::AllocCPArticle("Zee blog");
Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.Very tantalizing, but quite a ways before it's generally available. I'm guessing that's what CCI has morphed into. -- -Blake (com/bcdev/blake)