public ISerializationServiceBuilder SetConfig(SerializationConfig config) { _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; }