C
Cybertof
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)MyArrayList.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;
if (CurrEmplyee.Name == "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)MyArrayList.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;
if (CurrEmplyee.Name == "test")
{
}
}
Regards,
Cybertof.