Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DiceCup
- {
- private List<Dice> _dices = new List<Dice>();
- public IEnumerable<int> Dices
- {
- get
- {
- foreach(var dice in _dices)
- {
- yield return dice.Value;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement