(client) feat:对xml加载函数添加单路径的重载
This commit is contained in:
@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user