/
aprogrammer
/
yessql
Обзор
Документация
Войти
/
aprogrammer
/
yessql
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/YesSql.Abstractions/IContentSerializer.cs
26 строк
900 B
Mike Alhayek
Use System.Text.Json as the default serializer (#504) (#541)
03 май 2024, 01:09
Не верифицирован
03 май 2024, 01:09
a906437
Код
Авторство
О чём код?
using System; namespace YesSql { /// <summary> /// This interface represents a components capable of serializing and deserializing /// an object. /// </summary> public interface IContentSerializer { /// <summary> /// Serializes an object into a <see cref="String" />. /// </summary> /// <param name="item">The object to serialize.</param> /// <returns>The serialized object.</returns> string Serialize(object item); /// <summary> /// Deserializes an object from a string. /// </summary> /// <param name="content">The <see cref="String" /> instance representing the object to deserialize.</param> /// <param name="type">The type of the object to deserialize.</param> /// <returns>The deserialized object.</returns> object Deserialize(string content, Type type); } }