public List<Rectangle> ExampleFailsLiskovSubstitutionPrinciple() { var rect = new Rectangle { Height = 10, Width = 20 }; var sqr = new Square { Height = 10 }; var shapes = new List<Rectangle> { rect, sqr }; return shapes; }
public List<Rectangle> ExampleFailsLiskovSubstitutionPrinciple() { var rect = new Rectangle { Height = 10, Width = 20 }; var sqr = new Square { Height = 10 }; var shapes = new List<Rectangle> { rect, sqr }; return shapes; }