Skip to content

Instantly share code, notes, and snippets.

@ssukhpinder
Created May 30, 2021 13:30
Show Gist options
  • Save ssukhpinder/84c9fea82b711010cb0ddd05b2bd7b30 to your computer and use it in GitHub Desktop.
Save ssukhpinder/84c9fea82b711010cb0ddd05b2bd7b30 to your computer and use it in GitHub Desktop.
public class Motercycle : IVehicleAggregate
{
private string[] _motercycles;
public Motercycle()
{
_motercycles = new[] { "Bike 1", "Bike 2", "Bike 3" };
}
public IVehicleIterator CreateIterator()
{
return new MotercycleIterator(_motercycles);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment