G
Guest
Hello,
I just want to check something. I have two objects of FileInfo.
FileInfo f1 = new FileInfo(“sam.exeâ€);
FileInfo f2 = new FileInfo(“sam.exeâ€);
If I use the f1.Equals(f2); it gives false but I want true because it’s the same file. What should I do? I want that when I call Equals, it use the FullName property to check. Should I create a new class? Thanks.
I just want to check something. I have two objects of FileInfo.
FileInfo f1 = new FileInfo(“sam.exeâ€);
FileInfo f2 = new FileInfo(“sam.exeâ€);
If I use the f1.Equals(f2); it gives false but I want true because it’s the same file. What should I do? I want that when I call Equals, it use the FullName property to check. Should I create a new class? Thanks.