Exemple #1
0
 internal ObjectWriter(ISurrogateSelector selector, StreamingContext context, InternalFE formatterEnums, SerializationBinder binder)
 {
     this.m_surrogates    = selector;
     this.m_context       = context;
     this.m_binder        = binder;
     this.formatterEnums  = formatterEnums;
     this.m_objectManager = new SerializationObjectManager(context);
 }
Exemple #2
0
 public ObjectWriter(ISurrogateSelector surrogateSelector, StreamingContext context, FormatterAssemblyStyle assemblyFormat, FormatterTypeStyle typeFormat)
 {
     this._surrogateSelector = surrogateSelector;
     this._context           = context;
     this._assemblyFormat    = assemblyFormat;
     this._typeFormat        = typeFormat;
     this._manager           = new SerializationObjectManager(context);
 }
 internal ObjectWriter(ISurrogateSelector selector, StreamingContext context, InternalFE formatterEnums, SerializationBinder binder)
 {
     _currentId      = 1;
     _surrogates     = selector;
     _context        = context;
     _binder         = binder;
     _formatterEnums = formatterEnums;
     _objectManager  = new SerializationObjectManager(context);
 }
Exemple #4
0
 public ObjectWriter(BinaryFormatter formatter)
 {
     _surrogateSelector = formatter.SurrogateSelector;
     _context           = formatter.Context;
     _assemblyFormat    = formatter.AssemblyFormat;
     _typeFormat        = formatter.TypeFormat;
     _manager           = new SerializationObjectManager(formatter.Context);
     _binder            = formatter.Binder;
 }
 internal ObjectWriter(ISurrogateSelector selector, StreamingContext context, InternalFE formatterEnums, SerializationBinder binder)
 {
     _currentId = 1;
     _surrogates = selector;
     _context = context;
     _binder = binder;
     _formatterEnums = formatterEnums;
     _objectManager = new SerializationObjectManager(context);
 }
Exemple #6
0
        public ObjectWriter(ISurrogateSelector surrogateSelector, StreamingContext context, FormatterAssemblyStyle assemblyFormat, FormatterTypeStyle typeFormat)
        {
            _surrogateSelector = surrogateSelector;
            _context           = context;
            _assemblyFormat    = assemblyFormat;
            _typeFormat        = typeFormat;
#if NET_2_0
            _manager = new SerializationObjectManager(context);
#endif
        }
Exemple #7
0
 internal SoapWriter(
     Stream outStream,
     ISurrogateSelector selector,
     StreamingContext context,
     ISoapMessage soapMessage)
 {
     _xmlWriter            = new XmlTextWriter(outStream, null);
     _xmlWriter.Formatting = Formatting.Indented;
     _surrogateSelector    = selector;
     _context = context;
     _manager = new SerializationObjectManager(_context);
 }