// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace CommunityToolkit.Common.Helpers; /// /// A basic serialization service. /// public interface IObjectSerializer { /// /// Serialize an object into a string. It is recommended to use strings as the final format for objects. /// /// The type of the object to serialize. /// The object to serialize. /// The serialized object. string? Serialize(T value); /// /// Deserialize string into an object of the given type. /// /// The type of the deserialized object. /// The string to deserialize. /// The deserialized object. T Deserialize(string value); }