1
0
mirror of https://github.com/chylex/Backup-Essentials.git synced 2025-08-16 23:31:43 +02:00
Files
BackupEssentials
Backup
Controls
Data
Pages
Properties
Resources
Sys
Utils
Collections
KeyEqualityComparer.cs
ObservableDictionary.cs
SafeDictionary.cs
StringDictionarySerializer.cs
IO
NativeMethods.cs
NumberSerialization.cs
Profiler.cs
ProgramArgsParser.cs
ScheduledUpdate.cs
WindowsVersion.cs
WpfExtensions.cs
App.xaml
App.xaml.cs
AppPageManager.cs
BackupEssentials.csproj
BackupReportWindow.xaml
BackupReportWindow.xaml.cs
BackupWindow.xaml
BackupWindow.xaml.cs
MainWindow.xaml
MainWindow.xaml.cs
TestingWindow.xaml
TestingWindow.xaml.cs
.gitignore
BackupEssentials.sln
LICENSE
README.md

14 lines
467 B
C#

using System.Collections.Generic;
namespace BackupEssentials.Utils.Collections{
class KeyEqualityComparer<K,V> : IEqualityComparer<KeyValuePair<K,V>>{
bool IEqualityComparer<KeyValuePair<K,V>>.Equals(KeyValuePair<K,V> kvp1, KeyValuePair<K,V> kvp2){
return kvp1.Key.Equals(kvp2.Key);
}
int IEqualityComparer<KeyValuePair<K,V>>.GetHashCode(KeyValuePair<K,V> kvp){
return kvp.Key.GetHashCode();
}
}
}