Shallow copying a list with downcasting
- by Mohit
I have the class herichary as follows
CEntity----CNode---CElement
I have a
class Nodes : List<Cnode>
and
Class Elements : List<Element>
Node class contain common item common across different project
Element class has item specific to a project.
I have to shallow copy the element list into the node list (basically down casting the elements to nodes)