SystemSerializer Class

Definition

A bare-bones serializer which knows how to deal with primitive types and strings only. It is recommended for more complex scenarios to implement your own IObjectSerializer based on System.Text.Json, Newtonsoft.Json, or DataContractJsonSerializer see https://aka.ms/wct/storagehelper-migration

C#
public class SystemSerializer : Microsoft.Toolkit.Helpers.IObjectSerializer
Inheritance
SystemSerializer
Implements

Constructors

Methods

Deserialize<T>(String)

Take a primitive value from storage and return it as the requested type using the ChangeType(Object, Type) API.

Serialize<T>(T)

Returns the value so that it can be serialized directly.

Applies to

Product Versions
Windows Community Toolkit 7.1.0