csharp check file similarities

Code Example - csharp check file similarities

                
                        public static bool AreFileContentsEqual(String path1, String path2) =>
              File.ReadAllBytes(path1).SequenceEqual(File.ReadAllBytes(path2));