is there something missing here?
private int existb1b2(Bill b1, ArtQty artQty)
{
int test;
for(int i = 0; i < b1.ArtQty.Count(); i++)
{
if (b1.ArtQty[i].Article.Name == artQty.Article.Name)
test = 0;
else
test = -1;
}
return test;
}
I got Error: Use of unassigned local variable 'test'
I think that test
should be initialized.