/// <summary>
        /// 系列为XML 字符窜。
        /// </summary>
        /// <returns></returns>
        public string SerializerToXmlString()
        {
            if (_XmlSerializer == null)
            {
                _XmlSerializer = new MB.Util.Serializer.QueryParameterXmlSerializer();
            }

            return(_XmlSerializer.Serializer(_DataList.ToArray()));
        }
Exemple #2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            //frmTestMain frm = new frmTestMain();
            //frm.ShowDialog();
            // Form2 frm = new Form2();
            // frm.ShowDialog();

            List <MB.Util.Model.QueryParameterInfo> pars = new List <QueryParameterInfo>();

            pars.Add(new QueryParameterInfo("Name", "站三", DataFilterConditions.Equal));
            pars.Add(new QueryParameterInfo("Code", "站三234525", DataFilterConditions.GreaterOrEqual));
            pars.Add(new QueryParameterInfo("Address", "站三2352525", DataFilterConditions.Equal));

            MB.Util.Serializer.QueryParameterXmlSerializer s = new MB.Util.Serializer.QueryParameterXmlSerializer();
            string xml = s.Serializer(pars.ToArray());

            MB.Util.Model.QueryParameterInfo[] pp = s.DeSerializer(xml);
        }