KGy SOFT

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: 6.0.0-rc.2
Syntax

public bool SafeMode { get; set; }

Property Value

Type: Boolean
Remarks

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

Reference