Exemple #1
0
            public ScopedParameterGroup(Resolver resolver, params VariableAssignment[] assignments)
            {
                _resolver = resolver;

                var names = new List <string>();

                foreach (var assignment in assignments)
                {
                    _resolver.SetParameterImpl(assignment.Identifier, assignment.Value, true);
                    names.Add(assignment.Identifier);
                }

                _names = names.ToArray();
            }
Exemple #2
0
 public ScopedParameter(Resolver resolver, string name, object value)
 {
     _resolver = resolver;
     _name     = name;
     _resolver.SetParameterImpl(_name, value, true);
 }