Ejemplo n.º 1
0
        public void AddVariable <T>(string name, Func <T> resolver)
        {
            ConstantVariableDeclaration v = new ConstantVariableDeclaration(name, resolver, typeof(T));

            variables.Add(name, v);
        }
Ejemplo n.º 2
0
        public void AddVariable <T>(string name, T value)
        {
            ConstantVariableDeclaration v = new ConstantVariableDeclaration(name, value, typeof(T));

            variables.Add(name, v);
        }