Activator.CreateInstance question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sean

    #1

    Activator.CreateInstance question

    Hello

    Is it possible to call Activator.Creat eInstance if the type is not compiled into an assembly. For instance if I drop a DLL into the same folder where executable is running, will the executable be able to create a type that is defined in this DLL

    If not, what is the way to do this

    -thanks
  • Klaus H. Probst

    #2
    Re: Activator.Creat eInstance question

    Yes, but you need to load the assembly into the app domain first. Or, use
    the overload of CreateInstance that supports doing this in one swoop.


    --
    _______________ _____
    Klaus H. Probst, MVP
    Great prices on a large selection of domains. Find the pefect domain for your new startup.



    "sean" <anonymous@disc ussions.microso ft.com> wrote in message
    news:8C63F575-41B3-4432-8EFC-24A679C0482E@mi crosoft.com...[color=blue]
    > Hello-
    >
    > Is it possible to call Activator.Creat eInstance if the type is not[/color]
    compiled into an assembly. For instance if I drop a DLL into the same folder
    where executable is running, will the executable be able to create a type
    that is defined in this DLL?[color=blue]
    >
    > If not, what is the way to do this?
    >
    > -thanks[/color]


    Comment

    Working...