Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7522415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:30:56+00:00 2026-05-30T02:30:56+00:00

Someone I know is claiming that it does and I am decompiling System.IO and

  • 0

Someone I know is claiming that it does and I am decompiling System.IO and looking in the Path class and I can’t see it making networking calls. The only suspect is in NormalizePath, where it calls to PathHelper which has calls into Win32Native.GetFullPathName. I don’t know what that does.

They are also claiming that System.Uri makes networking calls when created, which I find very incredible. I just can’t believe that it would do that given how unbelievably slow that would be and how intrinsic these methods are.

Can anyone enlighten me?

Edit:
It turns out that Path.Combine(p) doesn’t ever call the network but Path.GetFullName(p) can. In the scenario where you have a UNC path with a short filename ("\\server\abcdef~1.txt" for example) it will actually call out to the network and try to expand the path, which blows my mind frankly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T02:30:57+00:00Added an answer on May 30, 2026 at 2:30 am

    No, the Path.Combine method simply performs the required string manipulation to generate a legal path string, given the path separator. It explicitly does not check to see if you’ve given it a valid path, or a valid file name, or whatever.

    The reference source code for .NET 4 is available, if you’re curious, and you can see that the work is done entirely in managed code, no native method calls, and is basically:

    return path1 + (path1.EndsWidth("\") ? "" : "\") + path2;
    

    (A lot more robust and flexible, of course, but that’s the idea.)

    Similarly, the constructors for the Uri class do mostly string parsing (though orders of magnitude more complex than the Path stuff) but still, no network calls that I can see.

    You could also check this yourself by running a packet capture utility such as Wireshark while executing such commands in a C# app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does someone know of a Sqlite manager that I can put on my site,
Does someone know a library that I can use to read MP3 tags in
Does someone know how I could extend and TabPage so that there is a
does someone know how I can get Sublime Text 2 to auto-hide the tabs
Does someone know a way to get a string from a date that contains
Does someone know where I can find a tutorial or material relating to Base24?
Does someone know how to use Wincap(or other library) to see messages sent from
Does someone know how do I get the path of my application directory? (e.g.
Does someone know what might go wrong, when you attempt to compare two System.Drawing.Image
Does someone know how I can export a gridview in ASP.net to Excel?? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.