WeakAssemblySerializationBinderSafeMode Property

KGy SOFT Core Libraries Help
Gets or sets whether loading assemblies is prohibited on deserialization.
Default value: .

Namespace:  KGySoft.Serialization.Binary
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-preview.3

public bool SafeMode { get; set; }

Property Value

Type: Boolean

If SafeMode is , then no assembly loading will occur on deserialization.

If SafeMode is , then BindToType may load assemblies during the deserialization.

To prevent the consumer IFormatter from loading assemblies the BindToType method never returns ; instead, it throws a SerializationException if a type could not be resolved.

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