How to work C# File.Copy method if source and destination is same

Z.lee 1 Reputation point
2021-11-22T10:09:57.73+00:00

I want to know how to work File.Copy method in C# when Source and Destination file is same.
I mean, In case of Source and Destination file's name and modified date is same.

Because, When I copied files, the compeleted time is different between case 1 and case 2.
( case 1 : Source and Destination files are same name, but different modified date. )
( case 2 : Source and Destination files are same name and also have same modified date.)

So, I want to know, Why the completed time is different between that two cases?

Thanks.

Developer technologies .NET Other
Developer technologies C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.