BetterExplorer.Utilities.CombinePaths C# (CSharp) Метод

CombinePaths() публичный статический Метод

public static CombinePaths ( List paths, string separatorvalue = ";", bool checkforfolders = false ) : string
paths List
separatorvalue string
checkforfolders bool
Результат string
		public static string CombinePaths(List<BExplorer.Shell._Plugin_Interfaces.IListItemEx> paths, string separatorvalue = ";", bool checkforfolders = false) {
			var ret = String.Empty;

			foreach (var item in paths) {
				if (!checkforfolders)
					ret += separatorvalue + item.ParsingName.ToShellParsingName();
				else if (item.IsFolder)
					ret += $"{separatorvalue}(f){item.ParsingName.ToShellParsingName()}";
				else
					ret += separatorvalue + item.ParsingName.ToShellParsingName();
			}

			if (ret.StartsWith(separatorvalue))
				ret = ret.Substring(1);

			return ret;
		}
	}