Template10.Services.SerializationService
1.0.2
dotnet add package Template10.Services.SerializationService --version 1.0.2
NuGet\Install-Package Template10.Services.SerializationService -Version 1.0.2
<PackageReference Include="Template10.Services.SerializationService" Version="1.0.2" />
paket add Template10.Services.SerializationService --version 1.0.2
#r "nuget: Template10.Services.SerializationService, 1.0.2"
// Install Template10.Services.SerializationService as a Cake Addin #addin nuget:?package=Template10.Services.SerializationService&version=1.0.2 // Install Template10.Services.SerializationService as a Cake Tool #tool nuget:?package=Template10.Services.SerializationService&version=1.0.2
SerializationService
The SerializationService
provides a simple abstracted interface to a service that implements consistent serialization and deserialization of objects:
// Serialize the passed object to a string. Returns null if the parameter is null. Returns an empty string
// if the parameter is an empty string.
string Serialize(object parameter);
// Converts the passed string back to an object. If the passed parameter is null, null is returned. If the
// string is empty, an empty string is returned.
object Deserialize(string parameter);
// Converts the passed string back to a object of type T. If deserialization fails, the default value
// for type T is returned. Note that if T is the wrong type for the passed serialized value, an
// InvalidCastException can occur. This can be avoided by using the next method.
T Deserialize<T>(string parameter);
// Attempts to deserialize the value while catching any InvalidCastException that may occur. Returns
// true if a value value was obtained, otherwise false is returned, along with the defaul value for
// type T.
bool TryDeserialize<T>(string parameter, out T result);
The NavigationService
sets up an instance to the Template 10-included JSON SerializationService
:
SerializationService = Service.SerializationService.SerializationService.Json;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
Universal Windows Platform | uap10.0.16299 is compatible. |
-
UAP 10.0.16299
- Microsoft.NETCore.UniversalWindowsPlatform (>= 6.2.8)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Template10.Services.SerializationService:
Package | Downloads |
---|---|
Template10.Services.DialogService
Handy Dialog Service for WinRT. Part of Template 10, a Library of Helpers for UWP. |
|
Template10.Services.FileService
Handy File Service for WinRT. Part of Template 10, a Library of Helpers for UWP. |
|
Template10.Services.WebService
Handy Web Service for WinRT. Part of Template 10, a Library of Helpers for UWP. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Template10.Services.SerializationService:
Repository | Stars |
---|---|
Windows-XAML/Template10
Making Windows 10 apps great again
|