Edit

Share via


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

public class SystemSerializer : Microsoft.Toolkit.Helpers.IObjectSerializer
type SystemSerializer = class
    interface IObjectSerializer
Public Class SystemSerializer
Implements IObjectSerializer
Inheritance
SystemSerializer
Implements

Constructors

SystemSerializer()

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