How to combine URIs

前端 未结 5 1447
情话喂你
情话喂你 2020-12-15 17:54

I have two Uri objects passed into some code, one is a directory and the other is a filename (or a relative path)

var a = new Uri(\"file:///C:/Some/Dirs\");
         


        
5条回答
  •  生来不讨喜
    2020-12-15 18:44

    Why not just inherit from Uri and use that, ie. do in constructor what you need to do to fix it up? Refactoring is cheap assuming this is internal to assembly or within reach..

提交回复
热议问题