jeudi 24 décembre 2015

Dynamically create executing code in C#

So, I have strange question (maybe so stupid), but... So, my task. I have same class which gives me same functionality. So, in the main program, which I realize (yes, it's client-server app)) , I want to dynamically create ".exe wrapper" for this class - simplest code like this:

class Program
{
    private SameClass mySameClass;

    static void Main(string[] args)
    {
        mySameClass = new mySameClass(args);
        Console.Readline();
    }
}

In general, I want to create main app which creates slaves in the independent proccesses via dynamically code generation. So, how to make it and control it? Thank you.





Aucun commentaire:

Enregistrer un commentaire