Hello,
In the code below, is there a shortcut not to use the temp var
CurrEmployee ?
I would like to use something like
"if (Employee)MyArr ayList.Name"
but don't know the syntax....
*******
CODE : (MyArrayList is a list of Employee)
*******
Employee CurrEmployee;
for (int i = 0;i<MyArrayList .Length;i++)
{
CurrEmployee = MyArrayList[i];
if (CurrEmplyee.Na me == "test")
{
}
}
Regards,
Cybertof.
In the code below, is there a shortcut not to use the temp var
CurrEmployee ?
I would like to use something like
"if (Employee)MyArr ayList.Name"
but don't know the syntax....
*******
CODE : (MyArrayList is a list of Employee)
*******
Employee CurrEmployee;
for (int i = 0;i<MyArrayList .Length;i++)
{
CurrEmployee = MyArrayList[i];
if (CurrEmplyee.Na me == "test")
{
}
}
Regards,
Cybertof.
Comment