WeakAssemblySerializationBinderSafeMode Property

Gets or sets whether loading assemblies is prohibited on deserialization.
Default value: .

Definition

Namespace: KGySoft.Serialization.Binary
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool SafeMode { get; set; }

Property Value

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.

See Also