public ComponentFactory(ComponentInfoManager componentInfoManager) { if (componentInfoManager == null) { throw new ArgumentNullException("componentInfoManager"); } this.componentInfoManager = componentInfoManager; PropertyHandlers = new List <IPropertyHandler>(); PropertyHandlers.Add(DefaultPropertyHandler.Instance); PropertyHandlers.Add(XnaTypePropertyHandler.Instance); PropertyHandlers.Add(new ComponentPropertyHandler(this)); }