예제 #1
0
        public override bool HasPara(string para)
        {
            bool has = this.paras.ContainsKey(para);

            if (!has)
            {
                for (int i = 0; i < fieldList.Count; i++)
                {
                    IFields f = fieldList[i];
                    if (f.HasField(para))
                    {
                        return(true);
                    }
                }
            }
            return(has);
        }
예제 #2
0
        public override bool HasPara(string para)
        {
            IPara v   = null;
            bool  has = this.paras.TryGetValue(para, out v);

            if (!has)
            {
                for (int i = 0, maxi = fieldList.Count; i < maxi; i++)
                {
                    IFields f = fieldList[i];
                    if (f.HasField(para))
                    {
                        return(true);
                    }
                }
            }
            return(has);
        }
예제 #3
0
        public override IPara Get(string name)
        {
            IPara para = null;

            paras.TryGetValue(name, out para);
            if (para == null)
            {
                for (int i = 0; i < fieldList.Count; i++)
                {
                    IFields f = fieldList[i];

                    if (f.HasField(name))
                    {
                        para = f.Get(name);
                        if (para != null)
                        {
                            return(para);
                        }
                    }
                }
            }
            return(para);
        }