3 ms·
You can get something like your last example in c#: ```c# var source = new FileSystemFile("source"); source.CopyTo("target"); ``` Of course, this isn't the on
by GordonS 7y ago
You can get something like your last example in c#:
```c#
var source = new FileSystemFile("source");
source.CopyTo("target");
```
Of course, this isn't the only way to do it; you get the usual footguns as described in the article too.
Also apologies if the formatting is crappy - on mobile, and TBH not sure what markdown-like syntax HN supports, despite being a long-time user!