protected override Property ReadSonClass(Property prop) { switch (prop.Value) { case "BLOCK": var block = new BLOCK(DXFData, prop); BLOCKList.Add(block); return block.ReadProperties(); case "ENDBLK": var endblk = new ENDBLK(DXFData, prop); ENDBLKList.Add(endblk); return endblk.ReadProperties(); default: return base.ReadSonClass(prop); } }
protected override Property ReadSonClass(Property prop) { switch (prop.Value) { case "BLOCK": var block = new BLOCK(DXFData, prop); BLOCKList.Add(block); return(block.ReadProperties()); case "ENDBLK": var endblk = new ENDBLK(DXFData, prop); ENDBLKList.Add(endblk); return(endblk.ReadProperties()); default: return(base.ReadSonClass(prop)); } }