Senior From PDF Power Questions High-Impact Interview Questions

Plugin Architecture using Reflection?

public interface IPlugin
{

void Execute();

}

Load dynamically

var assembly = Assembly.LoadFrom("Plugin.dll");
var type = assembly.GetTypes().First(t => typeof(IPlugin).IsAssignableFrom(t));
var plugin = (IPlugin)Activator.CreateInstance(type);

plugin.Execute();

More from Career Preparation

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details