Files

22 lines
693 B
C#
Raw Permalink Normal View History

namespace SabreTools.Serialization.Writers
2023-09-08 16:54:07 -04:00
{
/// <summary>
/// Defines how to write to Streams
2023-09-08 16:54:07 -04:00
/// </summary>
2025-09-26 15:28:53 -04:00
public interface IStreamWriter<TModel>
2023-09-08 16:54:07 -04:00
{
/// <summary>
/// Enable outputting debug information
/// </summary>
public bool Debug { get; set; }
2023-09-08 18:39:57 -04:00
/// <summary>
2025-09-26 15:28:53 -04:00
/// Serialize a <typeparamref name="TModel"/> into a Stream
2023-09-08 18:39:57 -04:00
/// </summary>
/// <typeparam name="T">Type of object to serialize from</typeparam>
/// <param name="obj">Data to serialize</param>
/// <returns>Filled object on success, null on error</returns>
2026-01-25 16:15:05 -05:00
public System.IO.Stream? SerializeStream(TModel? obj);
2023-09-08 16:54:07 -04:00
}
}