コード例 #1
0
        /// <summary>
        ///     Handle loading the filenames.
        /// </summary>
        /// <param name="section">The section being loaded.</param>
        private void HandleFilenames(EncogFileSection section)
        {
            IDictionary <String, String> prop = section.ParseParams();

            _script.Properties.ClearFilenames();

            foreach (var e in prop)
            {
                _script.Properties.SetFilename(e.Key, e.Value);
            }
        }
コード例 #2
0
        /// <summary>
        ///     Load a generic subsection.
        /// </summary>
        /// <param name="section">The section to load from.</param>
        private void LoadSubSection(EncogFileSection section)
        {
            IDictionary <String, String> prop = section.ParseParams();

            foreach (String name in prop.Keys)
            {
                String key = section.SectionName.ToUpper() + ":"
                             + section.SubSectionName.ToUpper() + "_" + name;
                String v = prop[name] ?? "";
                ValidateProperty(section.SectionName,
                                 section.SubSectionName, name, v);
                _script.Properties.SetProperty(key, v);
            }
        }