/// <summary> /// Serializes passed in object. /// </summary> /// <param name="source"> /// Object to be serialized. /// </param> internal void SerializeAsStream(object source) { _serializer = new CustomInternalSerializer ( _writer, _notypeinformation, true ); _serializer.WriteOneObject(source, null, _depth); _serializer = null; }
/// <summary> /// Serializes passed in object. /// </summary> /// <param name="source"> /// Object to be serialized. /// </param> internal void Serialize(object source) { //Write the root element tag before writing first object. if (_firstCall) { _firstCall = false; Start(); } _serializer = new CustomInternalSerializer ( _writer, _notypeinformation, true ); _serializer.WriteOneObject(source, null, _depth); _serializer = null; }
/// <summary> /// Serializes passed in object /// </summary> /// <param name="source"> /// object to be serialized /// </param> internal void SerializeAsStream(object source) { _serializer = new CustomInternalSerializer ( _writer, _notypeinformation, true ); _serializer.WriteOneObject(source, null, _depth); _serializer = null; }
/// <summary> /// Serializes passed in object /// </summary> /// <param name="source"> /// object to be serialized /// </param> internal void Serialize(object source) { //Write the root element tag before writing first object. if (_firstCall) { _firstCall = false; Start(); } _serializer = new CustomInternalSerializer ( _writer, _notypeinformation, true ); _serializer.WriteOneObject(source, null, _depth); _serializer = null; }