Exemplo n.º 1
0
        private ExQuery[] ReadQueryDef(String[] qryDefFiles)
        {
            List <ExQuery> exQryList = new List <ExQuery>();

            System.Xml.Serialization.XmlSerializer qryDefXmlSerializer =
                new System.Xml.Serialization.XmlSerializer(typeof(QueryDefType));

            foreach (String eachXmlFile in qryDefFiles)
            {
                using (FileStream fiStream = File.OpenRead(eachXmlFile))
                {
                    QueryDefType qryDef = qryDefXmlSerializer.Deserialize(fiStream) as QueryDefType;

                    if (null != qryDef)
                    {
                        exQryList.Add(new ExQuery(qryDef));
                    }
                }
            }

            return(exQryList.ToArray());
        }
Exemplo n.º 2
0
        public ExQuery(QueryDefType queryDef)
        {
            m_QueryDef = queryDef;

            this.ParseQueryStr();
        }