Exemple #1
0
        public static void SerializeFilter(XmlWriter writer, IFilter filter)
        {
            FilterWrapper wrapper = new FilterWrapper(filter);
            XmlSerializer xs      = GetOrCreateXMLFilterSerializer();

            xs.Serialize(writer, wrapper);
        }
Exemple #2
0
        public static IFilter DeserializeFilter(XmlReader reader)
        {
            XmlSerializer xs      = GetOrCreateXMLFilterSerializer();
            FilterWrapper wrapper = xs.Deserialize(reader) as FilterWrapper;

            return(wrapper == null ? null : wrapper.Filter);
        }
 public static void SerializeFilter(XmlWriter writer, IFilter filter)
 {
   FilterWrapper wrapper = new FilterWrapper(filter);
   XmlSerializer xs = GetOrCreateXMLFilterSerializer();
   xs.Serialize(writer, wrapper);
 }