I have a class
public class ApplicationClass
{
public ApplicationClass()
{
// Some code here
public bool Check()
{
// some code here
}
}
}
I am calling the Check
function in a click event
protected void CheckFunction_Click(object sender, EventArgs e)
{
new ApplicationClass().Check();
}
Now in the ApplicationClass
constructor I want to get the info about the name of the function which is called and parameters if any i.e the Check
function.
How can I get these details ?
I want to save all the functions that are being called. Instead of placing the call to function at every function can I have it at one place? It need not be inside a constructor necessarily.