Well, the title says it all. When passing a file name to a method, should I use a FileInfo object or a plain file name (string)? Why would I prefer one to the other?
Some of my colleagues like to write method like this:
- void Export(FileInfo fileInfo)
Is it better than:
- void Export(string fileName)
Thanks!