public virtual void AddEntityToContainer(IEntity ent) { if (m_entityCollection == null) { m_entityCollection = new EntityCollection(this.Name.Name); } m_entityCollection.AddEntity(ent); }