dotnetomaniak.pl - Artykuły z tagiem pathdotnetomaniak.pl - Artykuły z tagiem path2024-03-29T06:28:58Zhttps://dotnetomaniak.pl/Tags/pathCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png2025https://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.pnghttps://dotnetomaniak.pl/Maciej-Zbrzezny-Programowanie-i-Technologie-AssemblyCodeBase-vs-AssemblyLocation-PLMaciej Zbrzezny: Programowanie i Technologie: Assembly.CodeBase vs. Assembly.Location [PL]2009-07-17T10:19:50Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_EuTN31EKGUaMwq-fTC8O2Q.png"/></div><div>Chyba każdy kto operował ścieżkami plików pod .NET zauważył, że ścieżki te mogą występować w dwóch postaciach:standardowej - typu: c:\katalog\plikprzypominającej URL, czyli file:////c:/katalog/plik
Różnicę widać właśnie porównując właściwość CodeBase i Location klasy Assembly.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Maciej-Zbrzezny-Programowanie-i-Technologie-AssemblyCodeBase-vs-AssemblyLocation-PL"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fmaciej-progtech.blogspot.com%2f2009%2f07%2fassemblycodebase-vs-assemblylocation.html" style="border:0px"/></a></div></div>padudahttps://dotnetomaniak.pl/Users/lTTRaS97HESSQ6Bhm-gUxg2009-07-22T22:06:02Zhttps://dotnetomaniak.pl/Maciej-Zbrzezny-Programowanie-i-Technologie-AssemblyCodeBase-vs-AssemblyLocation-PL2280Chyba każdy kto operował ścieżkami plików pod .NET zauważył, że ścieżki te mogą występować w dwóch postaciach:standardowej - typu: c:\katalog\plikprzypominającej URL, czyli file:////c:/katalog/plik
Różnicę widać właśnie porównując właściwość CodeBase i Location klasy Assembly.http://maciej-progtech.blogspot.com/2009/07/assemblycodebase-vs-assemblylocation.htmlhttp://dotnetomaniak.pl/Data/Thumbnails/small_EuTN31EKGUaMwq-fTC8O2Q.png