Month: February 2023

Project – BookStore – Structural Patterns-2

The BookComposite class implements the following shared features: Using the LINQ Sum() extension method in the children.Sum(child => child.Count()); expression allowed us to replace a more complex for loop and an accumulator variable. Adding the virtual modifier to the Type property allows sub-types to override the property in case their type’s name does not reflect […]



          Copyright © 2015-2024 | About | Terms of Service | Privacy Policy