Beispiel #1
0
        Hashtable GetParams(ArrayList withParams)
        {
            if (withParams == null)
            {
                return(null);
            }
            Hashtable ret;

            if (paramPassingCache.Count != 0)
            {
                ret = (Hashtable)paramPassingCache.Pop();
                ret.Clear();
            }
            else
            {
                ret = new Hashtable();
            }

            int len = withParams.Count;

            for (int i = 0; i < len; i++)
            {
                XslVariableInformation param = (XslVariableInformation)withParams [i];
                ret.Add(param.Name, param.Evaluate(this));
            }
            return(ret);
        }
		private Hashtable GetParams(ArrayList withParams)
		{
			if (withParams == null)
			{
				return null;
			}
			Hashtable hashtable;
			if (this.paramPassingCache.Count != 0)
			{
				hashtable = (Hashtable)this.paramPassingCache.Pop();
				hashtable.Clear();
			}
			else
			{
				hashtable = new Hashtable();
			}
			int count = withParams.Count;
			for (int i = 0; i < count; i++)
			{
				XslVariableInformation xslVariableInformation = (XslVariableInformation)withParams[i];
				hashtable.Add(xslVariableInformation.Name, xslVariableInformation.Evaluate(this));
			}
			return hashtable;
		}