Results 1 to 2 of 2

Thread: Global method in dynamic assembly

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91

    Global method in dynamic assembly

    I have an Assembly in which I need to define a dynamic assembly which itself has a global method which the original assembly can point to and get return values from. The best I can come up with is defining the assembly via AppDomain.DefineDynamicAssembly() and then in that defining a dynamic module and in that defining the global method. Unfortunately the MethodBuilder.MethodHandle property is not supported, otherwise I'd just be doing MethodHandle.GetFunctionPointer() to return a pointer to the function.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    What is it exactly that you are trying to do by this? Also what do you mean by define a dynamic assembly?

    Just use an Interface or abstract class and check the assembly for anything that implements or inherits from it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width