clean-code-dotnet icon indicating copy to clipboard operation
clean-code-dotnet copied to clipboard

SOLID. Liskov Substitution Principle (LSP). Example incorrect.

Open VitaliyPavlyukov opened this issue 4 years ago • 1 comments

Drawable RenderLargeRectangles(Rectangle rectangles) { foreach (rectangle in rectangles) {

rectangles must be array, not Rectangle

VitaliyPavlyukov avatar Dec 23 '20 11:12 VitaliyPavlyukov

You are correct. Can you create PR with this changes?

dmitryvhf avatar Jan 15 '22 15:01 dmitryvhf