internal Type[] CollectTypes(XmlIncludeTypeDataCollection xmlIncludeTypes)
        {
            Type[] types = new Type[xmlIncludeTypes.Count];

            int index = 0;

            foreach (XmlIncludeTypeData includeType in xmlIncludeTypes)
            {
                types[index++] = Type.GetType(includeType.TypeName, true);
            }

            return(types);
        }
 /// <summary>
 /// <para>Initialize a new instance of the <see cref="ConfigurationSettings"/> class with a default section name.</para>
 /// </summary>
 /// <param name="applicationName">
 /// <para>The name of the application for these settings.</para>
 /// </param>
 public ConfigurationSettings(string applicationName)
 {
     this.applicationName  = applicationName;
     configurationSections = new ConfigurationSectionDataCollection();
     xmlIncludeTypes       = new XmlIncludeTypeDataCollection();
 }
        internal Type[] CollectTypes(XmlIncludeTypeDataCollection xmlIncludeTypes)
        {
            Type[] types = new Type[xmlIncludeTypes.Count];

            int index = 0;
            foreach (XmlIncludeTypeData includeType in xmlIncludeTypes)
            {
                types[index++] = Type.GetType(includeType.TypeName, true);
            }

            return types;
        }
 /// <summary>
 /// <para>Initialize a new instance of the <see cref="XmlSerializerTransformerData"/> class with a name and fully qualified type name.</para>
 /// </summary>
 /// <param name="name">
 /// <para>The name of the transformer.</para>
 /// </param>       
 public XmlSerializerTransformerData(string name)
     : base(name)
 {
     xmlIncludeTypes = new XmlIncludeTypeDataCollection();
 }
Example #5
0
 /// <summary>
 /// <para>Initialize a new instance of the <see cref="ConfigurationSettings"/> class with a default section name.</para>
 /// </summary>
 /// <param name="applicationName">
 /// <para>The name of the application for these settings.</para>
 /// </param>
 public ConfigurationSettings(string applicationName)
 {
     this.applicationName = applicationName;
     configurationSections = new ConfigurationSectionDataCollection();
     xmlIncludeTypes = new XmlIncludeTypeDataCollection();
 }
 /// <summary>
 /// <para>Initialize a new instance of the <see cref="XmlSerializerTransformerData"/> class with a name and fully qualified type name.</para>
 /// </summary>
 /// <param name="name">
 /// <para>The name of the transformer.</para>
 /// </param>
 public XmlSerializerTransformerData(string name) : base(name)
 {
     xmlIncludeTypes = new XmlIncludeTypeDataCollection();
 }