mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Rename Dat to MetadataFile
This commit is contained in:
@@ -23,7 +23,7 @@ namespace SabreTools.Serialization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">Path to the file to deserialize</param>
|
/// <param name="path">Path to the file to deserialize</param>
|
||||||
/// <returns>Deserialized data on success, null on failure</returns>
|
/// <returns>Deserialized data on success, null on failure</returns>
|
||||||
public static Dat? Deserialize(string path)
|
public static MetadataFile? Deserialize(string path)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -42,7 +42,7 @@ namespace SabreTools.Serialization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="stream">Stream to deserialize</param>
|
/// <param name="stream">Stream to deserialize</param>
|
||||||
/// <returns>Deserialized data on success, null on failure</returns>
|
/// <returns>Deserialized data on success, null on failure</returns>
|
||||||
public static Dat? Deserialize(Stream? stream)
|
public static MetadataFile? Deserialize(Stream? stream)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -56,7 +56,7 @@ namespace SabreTools.Serialization
|
|||||||
Separator = ';',
|
Separator = ';',
|
||||||
VerifyFieldCount = false,
|
VerifyFieldCount = false,
|
||||||
};
|
};
|
||||||
var dat = new Dat();
|
var dat = new MetadataFile();
|
||||||
|
|
||||||
// Read the header values first
|
// Read the header values first
|
||||||
if (!reader.ReadHeader())
|
if (!reader.ReadHeader())
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace SabreTools.Serialization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">Path to the file to deserialize</param>
|
/// <param name="path">Path to the file to deserialize</param>
|
||||||
/// <returns>Deserialized data on success, null on failure</returns>
|
/// <returns>Deserialized data on success, null on failure</returns>
|
||||||
public static Dat? Deserialize(string path)
|
public static MetadataFile? Deserialize(string path)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -36,7 +36,7 @@ namespace SabreTools.Serialization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="stream">Stream to deserialize</param>
|
/// <param name="stream">Stream to deserialize</param>
|
||||||
/// <returns>Deserialized data on success, null on failure</returns>
|
/// <returns>Deserialized data on success, null on failure</returns>
|
||||||
public static Dat? Deserialize(Stream? stream)
|
public static MetadataFile? Deserialize(Stream? stream)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -51,7 +51,7 @@ namespace SabreTools.Serialization
|
|||||||
Separator = '\t',
|
Separator = '\t',
|
||||||
VerifyFieldCount = false,
|
VerifyFieldCount = false,
|
||||||
};
|
};
|
||||||
var dat = new Dat();
|
var dat = new MetadataFile();
|
||||||
|
|
||||||
// Loop through the rows and parse out values
|
// Loop through the rows and parse out values
|
||||||
var rows = new List<Row>();
|
var rows = new List<Row>();
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace SabreTools.Serialization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">Path to the file to deserialize</param>
|
/// <param name="path">Path to the file to deserialize</param>
|
||||||
/// <returns>Deserialized data on success, null on failure</returns>
|
/// <returns>Deserialized data on success, null on failure</returns>
|
||||||
public static Dat? Deserialize(string path)
|
public static MetadataFile? Deserialize(string path)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -35,7 +35,7 @@ namespace SabreTools.Serialization
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="stream">Stream to deserialize</param>
|
/// <param name="stream">Stream to deserialize</param>
|
||||||
/// <returns>Deserialized data on success, null on failure</returns>
|
/// <returns>Deserialized data on success, null on failure</returns>
|
||||||
public static Dat? Deserialize(Stream? stream)
|
public static MetadataFile? Deserialize(Stream? stream)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ namespace SabreTools.Serialization
|
|||||||
|
|
||||||
// Setup the reader and output
|
// Setup the reader and output
|
||||||
var reader = new StreamReader(stream, Encoding.UTF8);
|
var reader = new StreamReader(stream, Encoding.UTF8);
|
||||||
var dat = new Dat();
|
var dat = new MetadataFile();
|
||||||
|
|
||||||
Set? set = null;
|
Set? set = null;
|
||||||
var sets = new List<Set?>();
|
var sets = new List<Set?>();
|
||||||
|
|||||||
Reference in New Issue
Block a user