mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
18 lines
435 B
C#
18 lines
435 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Octokit
|
|
{
|
|
public class WebHookConfigComparer : IEqualityComparer<KeyValuePair<string, string>>
|
|
{
|
|
public bool Equals(KeyValuePair<string, string> x, KeyValuePair<string, string> y)
|
|
{
|
|
return x.Key == y.Key;
|
|
}
|
|
|
|
public int GetHashCode(KeyValuePair<string, string> obj)
|
|
{
|
|
return obj.Key.GetHashCode();
|
|
}
|
|
}
|
|
}
|