Esempio n. 1
0
        public BListOfIDsXmlSerializer(BListOfIDsXmlParams <TContext> @params, Collections.BListOfIDs <TContext> list)
        {
            Contract.Requires <ArgumentNullException>(@params != null);
            Contract.Requires <ArgumentNullException>(list != null);

            mParams = @params;
            mList   = list;
        }
Esempio n. 2
0
        public static void Serialize(KSoft.IO.XmlElementStream s, FA mode, BXmlSerializerInterface xsi,
                                     Collections.BListOfIDs list, BListOfIDsXmlParams @params)
        {
            Contract.Requires(s != null);
            Contract.Requires(xsi != null);
            Contract.Requires(list != null);
            Contract.Requires(@params != null);

            using (var xs =
#if NO_TLS_STREAMING
                       new BListOfIDsXmlSerializer(@params, list)
#else
                       BDatabaseXmlSerializerBase.sBListOfIDsXmlSerializer.Value.Reset(@params, list)
#endif
                   )
            {
                xs.StreamXml(s, mode, xsi);
            }
        }
Esempio n. 3
0
 protected override void FinishTlsStreaming()
 {
     mParams = null;
     mList   = null;
 }