I have a applications, that filters some files. There is a BaseRule, SpecificRule1 and SpecificRule2. Also these rules contains a List which do something with the file. Each of the actions classes (inherits from BaseAction) have a different constructor, due the algorithm needs different input (send file as email, move file to folder, delete file)
When I want to display the actions and rules on two grids with their parameters I use a List of BaseActions. If I want to modify the actions/rules parameters that are not shared I have to downcast them. Is it possible to avoid the downcast?
Aucun commentaire:
Enregistrer un commentaire