Greentube.Serialization 1.0.0-alpha2

Provides a common contract for serialization.

This is a prerelease version of Greentube.Serialization.
Install-Package Greentube.Serialization -Version 1.0.0-alpha2
dotnet add package Greentube.Serialization --version 1.0.0-alpha2
paket add Greentube.Serialization --version 1.0.0-alpha2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Greentube.Serialization NuGet

This package hold the base abstraction of serialization. It's a simple contract which any implementation of a serialization format can adhere:

interface ISerializer
{
    byte[] Serialize<T>(T @object);

    object Deserialize(Type type, byte[] bytes);
}

As an extension method on ISerializer, the more convenient Deserialize&lt;T&gt; is available. Useful when T is known at compile time.

public static T Deserialize<T>(
    this ISerializer serializer,
    byte[] bytes);

This package depends on .NET Standard 1.0 and hence is supported by any runtime introduced after 2010.

Greentube.Serialization NuGet

This package hold the base abstraction of serialization. It's a simple contract which any implementation of a serialization format can adhere:

interface ISerializer
{
    byte[] Serialize<T>(T @object);

    object Deserialize(Type type, byte[] bytes);
}

As an extension method on ISerializer, the more convenient Deserialize&lt;T&gt; is available. Useful when T is known at compile time.

public static T Deserialize<T>(
    this ISerializer serializer,
    byte[] bytes);

This package depends on .NET Standard 1.0 and hence is supported by any runtime introduced after 2010.

Version History

Version Downloads Last updated
1.0.0-alpha2 175 11/26/2017
1.0.0-alpha 107 11/25/2017