Last active
April 20, 2017 10:26
-
-
Save bjoerntx/08a657a9acfa9ac6bbfcb467db4c883b to your computer and use it in GitHub Desktop.
This file contains 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 ProductBlock | |
{ | |
private List<Product> _products; | |
public List<Product> Products | |
{ | |
get { return _products; } | |
set | |
{ | |
_products = value; | |
foreach (Product product in _products) | |
{ | |
this.BlockSum += product.Price; | |
} | |
} | |
} | |
public int BlockSum { get; internal set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment