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)x == y;
        }
        public int GetHashCode(MethodInfo obj)
        {
            return RuntimeHelpers.GetHashCode(obj);
        }
    }
}