Files
FSI.BT.IR.Tools/FSI.BT.Tools/Global/Helpers/GetFolderByName.cs
Maier Stephan SI 1c68b8f401 Sicherung
2023-04-17 07:07:49 +02:00

21 lines
518 B
C#

using System.Collections.Generic;
namespace FSI.BT.Tools.Global.Helpers
{
internal class GetFolderByName
{
internal static (string path, string description) Get(IEnumerable<Settings.Folder.IFolder> folders, string name)
{
foreach (var folder in folders)
{
if (folder.Name.Equals(name))
{
return (folder.Path, folder.Description);
}
}
return (null, null);
}
}
}