declaring variable with switch c# code example
Example: c# switch example
switch (iGender)
{
case 1:
LabelOne.Text = "Male";
break;
case 2:
LabelOne.Text = "Female";
break;