In C# using .Net6 we can interact with an FTP-server using an FtpWebRequest
-object. This works well. But how should we create this object?
Currently we use WebRequest.Create()
and Microsoft says we should do exactly this.
But this function is obsolete now. So when the Create
-function is obsolete but the FtpWebRequest
-type is not, what is the correct and recommended way of creating a FtpWebRequest
-object without using obsolete functions?