Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- class Test
- {
- public interface IDrawable
- {
- void Draw();
- }
- public class Shape : IDrawable
- {
- public void Draw() {}
- }
- public void DrawItems(List<IDrawable> itemsToDraw) {}
- public Test()
- {
- List<Shape> shapes = new List<Shape>();
- DrawItems(shapes);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement