예제 #1
0
        public static bool Serialize(Stream stream, SearchCriteriaList items)
        {
            try
            {
                var xs = new XmlSerializer(typeof(SearchCriteriaList));
                xs.Serialize(stream, items);
                return true;
            }
            catch
            {
            }

            return false;
        }
예제 #2
0
        public static bool Serialize(Stream stream, SearchCriteriaList items)
        {
            try
            {
                var xs = new XmlSerializer(typeof(SearchCriteriaList));
                xs.Serialize(stream, items);
                return(true);
            }
            catch
            {
            }

            return(false);
        }
예제 #3
0
        public static bool Serialize(Stream stream, IEnumerable<SearchCriteriaXmlSettings> items)
        {
            try
            {
                var list = new SearchCriteriaList { Settings = items.ToList() };
                var xs = new XmlSerializer(typeof(SearchCriteriaList));
                xs.Serialize(stream, list);
                return true;
            }
            catch
            {
            }

            return false;
        }
예제 #4
0
        public static bool Serialize(Stream stream, IEnumerable <SearchCriteriaXmlSettings> items)
        {
            try
            {
                var list = new SearchCriteriaList {
                    Settings = items.ToList()
                };
                var xs = new XmlSerializer(typeof(SearchCriteriaList));
                xs.Serialize(stream, list);
                return(true);
            }
            catch
            {
            }

            return(false);
        }