Ejemplo n.º 1
0
        public BListExplicitIndexXmlSerializer(BListExplicitIndexXmlParams <T> @params, Collections.BListExplicitIndex <T> list) : base(@params)
        {
            Contract.Requires <ArgumentNullException>(@params != null);
            Contract.Requires <ArgumentNullException>(list != null);

            mList = list;
        }
Ejemplo n.º 2
0
        protected BListExplicitIndexXmlSerializerBase(BListExplicitIndexXmlParams <T> @params)
        {
            Contract.Requires <ArgumentNullException>(@params != null);

            mParams = @params;
        }
Ejemplo n.º 3
0
        public static void Serialize <T, TDoc, TCursor>(IO.TagElementStream <TDoc, TCursor, string> s,
                                                        Collections.BListExplicitIndex <T> list, BListExplicitIndexXmlParams <T> @params)
            where T : IO.ITagElementStringNameStreamable, new()
            where TDoc : class
            where TCursor : class
        {
            Contract.Requires(s != null);
            Contract.Requires(list != null);
            Contract.Requires(@params != null);

            using (var xs = new BListExplicitIndexXmlSerializer <T>(@params, list))
            {
                xs.Serialize(s);
            }
        }