We can execute a method using .NET reflector. But is there any way to skip a specific step based on some condition while executing a method? For Example :
public fn1()
{
int a=1,b=2,c=3;
//Step1
a=b;
//Ste2
b=c;
//Step3
c+=1;
}
These Steps will be in a Excel with an additional column "Status"[Active/Inactive]
Now, Using reflection , is there any way to skip the Step that is marked as Inactive?