mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-27 08:39:47 +00:00
20 lines
606 B
C#
20 lines
606 B
C#
using SabreTools.Models.SeparatedValue;
|
|
using SabreTools.Serialization.Interfaces;
|
|
|
|
namespace SabreTools.Serialization.Files
|
|
{
|
|
public partial class SeparatedValue : IFileSerializer<MetadataFile>
|
|
{
|
|
/// <inheritdoc/>
|
|
public MetadataFile? Deserialize(string? path) => Deserialize(path, ',');
|
|
|
|
/// <inheritdoc/>
|
|
public MetadataFile? Deserialize(string? path, char delim)
|
|
{
|
|
using (var stream = PathProcessor.OpenStream(path))
|
|
{
|
|
return new Streams.SeparatedValue().Deserialize(stream, delim);
|
|
}
|
|
}
|
|
}
|
|
} |