Пример #1
0
        /// <summary>
        /// Adds one preprocessor definition or updates an existing preprocessor definition.
        /// </summary>
        /// <param name="preprocessorDefinition">The definition to add or update.</param>
        public void AddOrUpdatePreprocessorDefinition(PreprocessorDefinition preprocessorDefinition)
        {
            Param.RequireNotNull(preprocessorDefinition, "preprocessorDefinition");

            if (!this.preprocessorDefinitions.ContainsKey(preprocessorDefinition.Name))
            {
                this.preprocessorDefinitions.Add(preprocessorDefinition.Name, preprocessorDefinition.Value);
            }
            else
            {
                this.preprocessorDefinitions[preprocessorDefinition.Name] = preprocessorDefinition.Value;
            }
        }
Пример #2
0
        /// <summary>
        /// Adds one preprocessor definition or updates an existing preprocessor definition.
        /// </summary>
        /// <param name="preprocessorDefinition">The definition to add or update.</param>
        public void AddOrUpdatePreprocessorDefinition(PreprocessorDefinition preprocessorDefinition)
        {
            Param.RequireNotNull(preprocessorDefinition, "preprocessorDefinition");

            if (!this.preprocessorDefinitions.ContainsKey(preprocessorDefinition.Name))
            {
                this.preprocessorDefinitions.Add(preprocessorDefinition.Name, preprocessorDefinition.Value);
            }
            else
            {
                this.preprocessorDefinitions[preprocessorDefinition.Name] = preprocessorDefinition.Value;
            }
        }