Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 378 Bytes

README.md

File metadata and controls

8 lines (7 loc) · 378 Bytes

Composite Pattern

Implemantation of Composite Pattern in C#

To Do

  • Add a type propety. Enum: Chapter and Item. Price property represents subtotal for chapter.
  • Create a method to flatten tree.
  • Create a method to filter tree. Use a backing property which will contain all children and a readonly property that will contain the filltered result/items.
  • Write Unit Test.