mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-29 10:16:43 +00:00
21 lines
530 B
C#
21 lines
530 B
C#
using SabreTools.Models.PIC;
|
|
using SabreTools.Serialization.Interfaces;
|
|
|
|
namespace SabreTools.Serialization.Files
|
|
{
|
|
public partial class PIC : IFileSerializer<DiscInformation>
|
|
{
|
|
/// <inheritdoc/>
|
|
#if NET48
|
|
public DiscInformation Deserialize(string path)
|
|
#else
|
|
public DiscInformation? Deserialize(string? path)
|
|
#endif
|
|
{
|
|
using (var stream = PathProcessor.OpenStream(path))
|
|
{
|
|
return new Streams.PIC().Deserialize(stream);
|
|
}
|
|
}
|
|
}
|
|
} |