Exemplo n.º 1
0
 static void Main(string[] args)
 {
     {
         AppDomain  domain = AppDomain.CreateDomain("Plugin Domain");
         Discoverer d      = (Discoverer)domain.CreateInstanceAndUnwrap(
             typeof(Discoverer).Assembly.FullName,
             typeof(Discoverer).FullName);
         string[] plugInTypeNames = d.GetPluginTypeNames("AllCapitals.dll");
         foreach (string s in plugInTypeNames)
         {
             Console.WriteLine(s); // Plugin.Extensions.AllCapitals
         }
     }
 }