BinarySerializationFormatterSurrogateSelector Property

Gets or sets an ISurrogateSelector can be used to customize serialization and deserialization.

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public ISurrogateSelector? SurrogateSelector { get; set; }

Property Value

ISurrogateSelector

Implements

IFormatterSurrogateSelector

Remarks

  Security Note

If the SafeMode flag is set in the Options property, then it is not allowed to use any surrogate selectors.

See the security notes at the Remarks section of the BinarySerializationFormatter class for more details.

See Also