Exemplo n.º 1
0
        public void SetComponent(IComponent component)
        {
            Debug.Assert(this.component == null, "Cannot set a component twice");
            this.component = component;

            if (this.name == null)
            {
                this.name = host.GetNewComponentName(component.GetType());
            }
        }