Wednesday, July 2, 2014

Correctly encapsulate the method of adding lines

Oops. I didn't try to build and test that code, so it's not surprising that a mistake or two slipped through.



// This method doesn't return anything, so make it void.
void AddLineItem(InvoiceLine line)
{
invoiceline.Add(line);
}


No comments:

Post a Comment