Silverlight - Dynamically Loading Assemblies/Code

Sign in to queue

Description

It can be useful to be able to dynamically load assemblies from the web in order to factor the application or add additional code at runtime. Here we look at how we can start doing that.

Embed

Download

Download this episode

The Discussion

  • User profile image
    Anthony​WJones

    In this demo the type name of the 'plugin' was hard coded into the hosting application.  A more decoupled approach would be to enumerate types in the assembly looking for an implementation of the desired interface.


  • User profile image
    mtaulty
    Hi,

    Yes, definitely agree - should have called that out in the demo. Generally, if you can keep it out of the code then keep it out of the code Smiley

    Mike.

Add Your 2 Cents