Esempio n. 1
0
        public override List <BuildingElement> GetChildren()
        {
            List <BuildingElement> children = new List <BuildingElement>();

            foreach (Floor floor in this.floors)
            {
                BuildingElement child = floor;
                children.Add(child);
            }
            return(children);
        }
Esempio n. 2
0
        public override List <BuildingElement> GetChildren()
        {
            List <BuildingElement> children = new List <BuildingElement>();

            foreach (Flat flat in this.flats)
            {
                BuildingElement child = (BuildingElement)flat;
                children.Add(child);
            }
            return(children);
        }