Esempio n. 1
0
 public BuildTocContext(BuildTocContext source)
 {
     _properties    = source._properties;
     _isLoaded      = source._isLoaded;
     _isInitialized = source._isInitialized;
     _context       = source._context;
     _dicItems      = source._dicItems;
 }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="system"></param>
        public BuildContext(BuildSystem system, BuildType type)
        {
            _buildType   = type;
            _buildState  = BuildState.None;
            _buildSystem = system;
            _properties  = new BuildProperties();
            _objects     = new BuildDictionary <object>();

            _targetPlatform      = String.Empty;
            _targetConfiguration = String.Empty;

            _tocContext   = new BuildTocContext();
            _buildOutputs = new List <BuildTuple <BuildFormatType, string> >();

            // Reset to the default properties
            this.Reset();
        }
Esempio n. 3
0
        public BuildTocContext Clone()
        {
            BuildTocContext content = new BuildTocContext(this);

            if (_properties != null)
            {
                content._properties = _properties.Clone();
            }
            if (_listItems != null)
            {
                content._listItems = _listItems.Clone();
            }
            if (_relatedTopics != null)
            {
                content._relatedTopics = _relatedTopics.Clone();
            }

            return(content);
        }