Edit

Share via


SystemSerializer Class

Definition

Caution

SystemSerializer has been migrated to the Microsoft.Toolkit (CommunityToolkit.Common) package.

A bare-bones serializer which knows how to deal with primitive types and strings only. It will store them directly based on the Windows.Storage.ApplicationDataContainer API. 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.Uwp.Helpers.IObjectSerializer
[System.Obsolete("SystemSerializer has been migrated to the Microsoft.Toolkit (CommunityToolkit.Common) package.")]
public class SystemSerializer : Microsoft.Toolkit.Uwp.Helpers.IObjectSerializer
type SystemSerializer = class
    interface IObjectSerializer
[<System.Obsolete("SystemSerializer has been migrated to the Microsoft.Toolkit (CommunityToolkit.Common) package.")>]
type SystemSerializer = class
    interface IObjectSerializer
Public Class SystemSerializer
Implements IObjectSerializer
Inheritance
SystemSerializer
Attributes
Implements

Constructors

SystemSerializer()

Methods

Deserialize<T>(Object)

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 by the Windows.Storage.ApplicationDataContainer API directly.

Applies to