Share via


FormatterPolicy Enum

Definition

The formatting style to use when serializing/deserializing information from the VisualizerObjectSource.

public enum FormatterPolicy
type FormatterPolicy = 
Public Enum FormatterPolicy
Inheritance
FormatterPolicy

Fields

Name Value Description
Legacy 0

Specifies that the serialization helper methods should use the BinaryFormatter if the runtime supports it, otherwise they fall back to Json. However, this functionality is now obsolete and is only available for compatibility reasons. For more information regarding why this option should not be used please refer to: https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide

Json 1

Serialization/deserialization using JSON. This will use Newtonsoft.Json when running on .NET Framework and System.Text.Json on .NET 6+.

NewtonsoftJson 2

Serialization/deserialization using JSON. This will use Newtonsoft.Json on all .NET platforms.

Applies to