mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-14 21:05:18 +00:00
21 lines
706 B
C#
21 lines
706 B
C#
using SabreTools.Serialization.Interfaces;
|
|
|
|
namespace SabreTools.Serialization.Files
|
|
{
|
|
public partial class NewExecutable : IFileSerializer<Models.NewExecutable.Executable>
|
|
{
|
|
/// <inheritdoc cref="IFileSerializer.Deserialize(string?)"/>
|
|
public static Models.NewExecutable.Executable? Deserialize(string? path)
|
|
{
|
|
var obj = new NewExecutable();
|
|
return obj.DeserializeImpl(path);
|
|
}
|
|
|
|
/// <inheritdoc/>
|
|
public Models.NewExecutable.Executable? DeserializeImpl(string? path)
|
|
{
|
|
using var stream = PathProcessor.OpenStream(path);
|
|
return new Streams.NewExecutable().Deserialize(stream);
|
|
}
|
|
}
|
|
} |