Complete Data Loading and Managing Logic #4

Merged
TheRedApricot merged 5 commits from :main into main 2025-07-12 12:27:01 +08:00
6 changed files with 77 additions and 14 deletions
Showing only changes of commit 601701cfa1 - Show all commits

View File

@ -228,6 +228,24 @@ namespace Utils
return xmlDocuments;
}
/// <summary>
/// 获取指定单个路径下的所有 XML 文件。
/// </summary>
/// <param name="path">文件夹路径。</param>
/// <returns>包含所有 XML 文件路径的列表。</returns>
public static List<string> GetXmlFilePathsFromPath(string path)
{
return GetXmlFilePathsFromPaths(new[] { path });
}
/// <summary>
/// 从指定单个路径加载所有 XML 文件并解析为 XmlDocument 对象。
/// </summary>
/// <param name="path">文件夹路径。</param>
/// <returns>包含所有解析后的 XmlDocument 对象的列表。</returns>
public static List<XmlDocument> LoadXmlFromPath(string path)
{
return LoadXmlFromPaths(new[] { path });
}
}
}