Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Question about reflection...

Question about reflection...

Scheduled Pinned Locked Moved C#
question
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kryal
    wrote on last edited by
    #1

    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?

    L 1 Reply Last reply
    0
    • K Kryal

      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?

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      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.

      B 1 Reply Last reply
      0
      • L leppie

        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.

        B Offline
        B Offline
        Blake Coverett
        wrote on last edited by
        #3

        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)

        L 1 Reply Last reply
        0
        • B Blake Coverett

          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)

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          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.

          B 1 Reply Last reply
          0
          • L leppie

            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.

            B Offline
            B Offline
            Blake Coverett
            wrote on last edited by
            #5

            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)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups