Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RabbitExpress.IExpressSerializer
// ***********************************************************************
// Assembly : RabbitExpress
// Author : Rene Windegger
// Created : 05-01-2019
//
// Last Modified By : Rene Windegger
// Last Modified On : 05-01-2019
// ***********************************************************************
// <copyright file="IExpressSerializer.cs" company="Rene Windegger">
// Copyright (c) Rene Windegger. All rights reserved.
// </copyright>
// <summary>
// This file is part of RabbitExpress.
//
// RabbitExpress is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// RabbitExpress is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this RabbitExpress. If not, see <http://www.gnu.org/licenses/>.
// </summary>
// ***********************************************************************
namespace RabbitExpress
{
/// <summary>
/// Interface IExpressSerializer
/// </summary>
public interface IExpressSerializer
{
/// <summary>
/// Deserializes the specified data.
/// </summary>
/// <typeparam name="TObject">The type of the object.</typeparam>
/// <param name="data">The data.</param>
/// <returns>TObject.</returns>
TObject Deserialize<TObject>(byte[] data);
/// <summary>
/// Serializes the specified value.
/// </summary>
/// <typeparam name="TObject">The type of the object.</typeparam>
/// <param name="value">The value.</param>
/// <returns>System.Byte[].</returns>
byte[] Serialize<TObject>(TObject value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.