Passer du code source au code MSIL
Bonjour à tous,
Je cherche des sources ou une explication afin de traduire ce code en MSIL :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Project2
{
class Bidule
{
private string s1;
private string s2;
private string s3;
private string s4;
public Bidule(string s1, string s2, string s3, string s4)
{
this.s1 = s1;
this.s2 = s2;
this.s3 = s3;
this.s4 = s4;
}
}
} |
Pourquoi me direz vous? Eh bien tout simplement car je cherche à faire la même chose mais pour un constructeur à n arguments (où n est non connu à la compilation), c'est à dire faire de l'introspection. J'ai regardé un exemple de code d'un constructeur à un seul argument mais je dois avouer ne pas tout saisir...
Merci d'avance pour votre aide :D