Thanks to both Russ and Drew for your help, as I noted in a previous mail, I've done what you suggested - using the constructor which takes a type array argument, and it now seems to work well.
This leads on to my next issue, which is that I'm attempting to use the application configuration file to store settings for certain properties on winform controls that I'm writing. The idea being that my control's properties get serialized as XML into the application configuration file at design time and then deserialized from the config file at runtime. This would allow me to write external app configurators, to alter the configuration of my app and also allows backup of configuration for my application. Now, my question here, is that I can see from the .NET configuration system, how to add configuration section handlers, but I'm not sure when or how to serialize to the configuration file within the IDE - the handlers according to the documentation are intended for read only access. What I want to do, is as stated serialize to the app.config file in XML, instead of using the normal code serialization for properties. I've looked into dynamic properties but this only seems to apply to simple types and not complex types, with aggregate classes etc. Any suggestions ? Thanks Phil. On Thu, 6 Mar 2003 16:37:39 -0700, Russ Alan <[EMAIL PROTECTED]> wrote: >Type RootType = typeof( MyRootType ); >string TypeName = GetMyTypeName(); >Type[] Types = new Type[1]; >Types[0] = Type.GetType(TypeName); >XmlSerializer xserializer = new XmlSerializer(RootType, Types); > >Russ > =================================== This list is hosted by DevelopMentorŪ http://www.develop.com You may be interested in Guerrilla .NET, 24 March 2003, in London http://www.develop.com/courses/gdotnet View archives and manage your subscription(s) at http://discuss.develop.com