Advertisement
Guest User

Untitled

a guest
May 28th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1.  class DiceCup
  2.     {
  3.         private List<Dice> _dices = new List<Dice>();
  4.  
  5.         public IEnumerable<int> Dices
  6.         {
  7.             get
  8.             {
  9.                 foreach(var dice in _dices)
  10.                 {
  11.                     yield return dice.Value;
  12.                 }
  13.             }
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement