コード例 #1
0
        /// <summary>
        /// Initializes all build attributes and child elements.
        /// </summary>
        protected virtual void InitializeXml(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework)
        {
            _xmlNode = elementNode;

            AttributeConfigurator configurator = new AttributeConfigurator(
                this, elementNode, properties, framework);
            configurator.Initialize();
        }
コード例 #2
0
ファイル: Element.cs プロジェクト: RoastBoy/nant
        /// <summary>
        /// Initializes all build attributes and child elements.
        /// </summary>
        protected virtual void InitializeXml(XmlNode elementNode, PropertyDictionary properties, FrameworkInfo framework) {
            _xmlNode = elementNode;

            IConditional conditional = this as IConditional;
            AttributeConfigurator configurator;

            if (conditional != null)
            {
                configurator =
                    new ConditionalConfigurator(this, elementNode, properties, framework);
            }
            else
            {
                configurator =
                    new AttributeConfigurator(this, elementNode, properties, framework);
            }
            configurator.Initialize();
        }