knax
public text v1 · immutable public void Appeler(string Methode)
{
Type _Type = this.GetType();
//List<MethodInfo> _Methodes = _Type.GetMethods();
MethodInfo _Methode = _Type.GetMethod(Methode);
if (_Methode != null)
_Methode.Invoke(this, null);
else
throw new ArgumentNullException("Methode", "Méthode inexistante. Modifier le modifieur de la méthode?");
}