I am working with someone else\'s code and trying to make some modifications. So what I\'m needing to do is take the following:
RemoteFileDP remoteFile = ne
If you don't wish to modify the source project that RemoteFileDP
lives in (or can't) you could write an extension method such as below:
public static RemoteFileDP ConvertToRemoteFileDP(this string location)
{
// Somehow create a RemoteFileDP object with your
// location string and return it
}
That way you could run the line of code you want:
RemoteFileDP remoteFile = locationDirectory;
With a slight modification as follows:
RemoteFileDP remoteFile = locationDirectory.ConvertToRemoteFileDP();
Would this allow you to solve your problem?