Open CrossSlide opened 7 years ago
@CrossSlide , did you get a chance to download Visual Studio item templates for CSLA? I would use ReadonlyList template for my parent object and 'ReadonlyChild' for child objects.
The easiest way to do achive inheritance is to create a generic base class with the common properties, f.ex: MyBase
You cannot "hide" properties/methods from the parent object (altho' you can use the new keyword to provide another implementation but it is not considered best practice).
Thanks @Chicagoan2016, @jonnybee. I'm thinking instead of a new class I may be better off handling my needs in a separate View, ViewModels.
@CrossSlide , if you end up using one of the MVVM frameworks like MvvmLight , Prism etc. please share your experience with us.
Regards
My OOP knowledge is a little weak. I have a Parent read-only object that has several child objects I’ll call it MyBaseObj. I want to create a new class (MyNewObj) that inherits MyBaseObj. I need to be able to bind to most of the MyBaseObj’s properties but MyNewObj needs to combine, transform, or hide other properties.
What’s the best way to go about this?
It’s a WPF application, thanks!