Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System.Collections.Generic;
  2.  
  3. class Test
  4. {
  5. public interface IDrawable
  6. {
  7. void Draw();
  8. }
  9.  
  10. public class Shape : IDrawable
  11. {
  12. public void Draw() {}
  13. }
  14.  
  15. public void DrawItems(List<IDrawable> itemsToDraw) {}
  16.  
  17. public Test()
  18. {
  19. List<Shape> shapes = new List<Shape>();
  20. DrawItems(shapes);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement