Пример #1
0
 internal void CreateValue(PoolValueDefinition definition)
 {
     XBinding binding = this.GetOrCreateBinding(definition.VariableName.Value);
     if (binding.IsBound)
         throw new InvalidOperationException(String.Format("Pool value {0} already defined!", definition.VariableName.Value));
     binding.Value = null; // Bind it
     if (definition is PoolConstantDefinition)
         binding.MakeConstant();
     else
         binding.MakeVariable();
 }
Пример #2
0
 /// <summary>
 /// Add a pool variable or pool constant definition to the installation context.
 /// </summary>
 /// <param name="definition">Definition of the pool variable or pool constant to be added.</param>
 public void AddPoolVariable(PoolValueDefinition definition)
 {
     this._poolVariables.Add(definition);
 }