Lets see first one example for that:
int x = 1;
loop:
if (x < 100)
{
x++;
goto loop;
}
here you need one lable which is used to transfer control using goto statement.
Here you need to take care of using goto statement.otherwise it goes in into infinite statement or skip some code always.

C# CornerPosted Oct 11, 2010, 4:36 PM
dear hiren thanks for your blog but in all proffessional Discusions we prefer to say others not to use goto statement and wwe call it Spagethi coding this statement learn developers not to think on conditions deeply an just write code followLight. thanks for all OMID
C# CornerPosted Oct 11, 2010, 4:36 PM
dear hiren thanks for your blog but in all proffessional Discusions we prefer to say others not to use goto statement and wwe call it Spagethi coding this statement learn developers not to think on conditions deeply an just write code followLight. thanks for all OMID
C# CornerPosted Oct 11, 2010, 4:36 PM
dear hiren thanks for your blog but in all proffessional Discusions we prefer to say others not to use goto statement and wwe call it Spagethi coding this statement learn developers not to think on conditions deeply an just write code followLight. thanks for all OMID