dotnetomaniak.pl - Artykuły z tagiem directorydotnetomaniak.pl - Artykuły z tagiem directory2024-03-29T08:23:26Zhttps://dotnetomaniak.pl/Tags/directoryCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png1025https://dotnetomaniak.pl/C-Be-careful-with-PathCombine-A-Girl-Among-Geeks[C#] Be careful with Path.Combine()! – A Girl Among Geeks2020-10-04T20:40:06Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_bHhXh_hiqEGNtqOkGnroQQ.png"/></div><div>If you are old enough to have experience in .net framework (and I hope you do, otherwise I will feel really old myself!), there is a high probability that you were concatenating directory paths wrong all the time! And that’s all because some time ago, somebody at Microsoft had, let’s say, not a best idea :P.
But what’s the problem?
Path.Combine can be used with one, two, three or even four arguments. In an ideal world the first argument should be passed as an absolute path and...</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/C-Be-careful-with-PathCombine-A-Girl-Among-Geeks"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=https%3a%2f%2fagirlamonggeeks.com%2f2020%2f10%2f04%2fc-be-careful-with-path-combine%2f" style="border:0px"/></a></div></div>AGirlAmongGeekshttps://dotnetomaniak.pl/Users/BR4sTPFFt06GUon4bGbBcQ2020-10-05T06:25:43Zhttps://dotnetomaniak.pl/C-Be-careful-with-PathCombine-A-Girl-Among-Geeks41090If you are old enough to have experience in .net framework (and I hope you do, otherwise I will feel really old myself!), there is a high probability that you were concatenating directory paths wrong all the time! And that’s all because some time ago, somebody at Microsoft had, let’s say, not a best idea :P.
But what’s the problem?
Path.Combine can be used with one, two, three or even four arguments. In an ideal world the first argument should be passed as an absolute path and...https://agirlamonggeeks.com/2020/10/04/c-be-careful-with-path-combine/http://dotnetomaniak.pl/Data/Thumbnails/small_bHhXh_hiqEGNtqOkGnroQQ.png