Last active
December 30, 2016 15:01
-
-
Save chrisza4/fd471e600eb8d4f7bc4b7903de447989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Receipt { | |
| public DateTime Timestamp; | |
| public string ReceiptNo; | |
| public List<LineItem> Items; | |
| public decimal CalculateSubTotal() { | |
| return Items.sum(d => d.price); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment