Tag: .Net framework
-
Downloading UTF-8 filenames from an FTP-server that does not support them, with System.Net.FtpWebRequest
—
I have written a windows service in .Net that monitors an FTP location for new files, which it then downloads to a local folder for processing. To be precise, the tool first renames the file before downloading it. It uses the .Net standard FtpWebRequest class from System.Net. Every once in a while, a file could…
-
Implementing IEquatable is not enough to use a class as a Dictionary key
—
Note to future self: it is not enough to implement IEquatable<T> to use a class as a Dictionary key. Today I needed a Dictionary with a composite key, a combination of several values. So I quickly cooked up a class with public properties to cover the values and for ease of use, a constructor to…