Add Iterator pattern
This commit is contained in:
16
src/IteratorPattern/TVExample/TvIterator/TV.cs
Normal file
16
src/IteratorPattern/TVExample/TvIterator/TV.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace IteratorPattern.TvIterator
|
||||
{
|
||||
/// <summary>
|
||||
/// Aggregate interface - get iterator
|
||||
/// The Aggregate defines an interface for the creation of the Iterator object.
|
||||
/// </summary>
|
||||
public interface TV
|
||||
{
|
||||
ChannelIterator GetIterator();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user