public ISerializationServiceBuilder SetConfig(SerializationConfig config)
 {
     this._config = config;
     if (_portableVersion < 0)
     {
         _portableVersion = config.GetPortableVersion();
     }
     _checkClassDefErrors = config.IsCheckClassDefErrors();
     _useNativeByteOrder = config.IsUseNativeByteOrder();
     _byteOrder = config.GetByteOrder();
     _enableCompression = config.IsEnableCompression();
     _enableSharedObject = config.IsEnableSharedObject();
     return this;
 }