예제 #1
0
 public void Delete(Variable context)
 {
     if (!this.variables.Remove(context.Name))
     {
         throw new InvalidOperationException();
     }
 }
예제 #2
0
        public VariableHandler(Variable variable, VariableCollection collection)
        {
            this.variable = variable;
            this.collection = collection;

            this.collection.Add(variable);
        }
예제 #3
0
        public void Add(Variable context)
        {
            if (this.variables.ContainsKey(context.Name))
            {
                throw new InvalidOperationException();
            }

            this.variables.Add(context.Name, context);
        }