Mmmhhh, la reflection dici? Quando ho tempo me la studio, tnx!
Per Dragon:
codice:namespace PippoNS { class Pippo { static void Main(string[] args) { if (args.Length > 0) { switch (args[0].ToUpper()) { case "DLL1": try { DLL1.OBJ_DLL1 prova = new DLL1.OBJ_DLL1(); } catch (Exception e) { Console.WriteLine(e.Message); } break; case "DLL2": try { DLL2.OBJ_DLL2 prova = new DLL2.OBJ_DLL2(); } catch (Exception e) { Console.WriteLine(e.Message); } break; } } } } }

Rispondi quotando