Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(Cells.Aggregate(19, (current, cell) => current * 31 + cell.GetHashCode()));
     }
 }
        void SetupCells()
        {
            var offset = Time.Zero;

            cellscircle.Length = Cells.Aggregate(Time.Zero, (acc, cell) => acc + cell.Length);

            foreach (var cell in Cells)
            {
                cellscircle
                .Add(
                    cell,
                    new Duration {
                    Start = offset,
                    End   = offset += cell.Length
                }
                    );
            }
        }