Is there possible to skip a part of code when runing the program in C#? I want to run the program depends on the thecode
value. If it equals to one, i will run the whole program. If it equals to two, i will skip a part of code.
if (theCode == 1 )
//run code 1 to code 3
if (the code == 2)
//run code 2 to 3
if (the code == 3)
//run code 3 only
code1(Str)
code1(Str)
code1(Str)
code2(Str)
code2(Str)
code2(Str)
code3(Str)
code3(Str)
code3(Str)