which one is better to use and why? I mean in which aspects these two commands differ and how? Performance, readability, ...
new FileInfo(path).Name or
new FileInfo(path).Name
I'd suggest using Path.GetFilename() because it simply parses path and returns file name. On other hand FileInfo object will check if executed code has rights to access specified file which is relatively slow.
FileInfo