There is a WebRequest class, and there is FtpWebRequest.
Instance FtpWebRequest request = new (FtpWebRequest)WebRequest.Create();
I read the Trollsen book in C # and saw such a method only in the example of the explicit implementation of Interfaces (Interface)Class.Method
, when the class implements many methods with the same name but from different interfaces, then the call to the specifically inherited method is used to cast to the interface, but in the case With WebRequest, the construction looks like (Class) Class.Method.
I would like to know why, why and how it works?