<PackageReference Include="Castle.Windsor" Version="3.2.0" />

SimpleMethodEqualityComparer

using System; using System.Collections.Generic; using System.Reflection; using System.Runtime.CompilerServices; namespace Castle.MicroKernel.Util { [Serializable] public class SimpleMethodEqualityComparer : IEqualityComparer<MethodInfo> { public bool Equals(MethodInfo x, MethodInfo y) { return object.ReferenceEquals(x, y); } public int GetHashCode(MethodInfo obj) { return RuntimeHelpers.GetHashCode(obj); } } }