Imagine that in a class you got this method:
float Do(int a_,string b_){}
I am trying to do something like this:
float Do(int a_, string b_) { var params = GetParamsListOfCurrentMethod();
Can anyone help?
Why should I do this?
Imagine you have an interface:
public Interface ITrucMuch { float Do(int a_,string b_);
And many classes implementing this interface
And a special class that also implements the interface:
public class MasterTrucMuch : ITrucMuch { public floatDo(int a_, string b_) { ITrucMuch tm = Factory.GetOptimizedTrucMuch();
Since the interface contains many methods, and since the first lien of all methods is always the same (checking if there is a better interface which is the current instance and if it calls the same method in the instance), I am trying to make its method.
thanks
source share