public int GetHashCode(IMethodInfo obj)
        {
            if (obj == null)
            {
                return(0);
            }

            unchecked
            {
                int hash = 17;
                hash = hash * 23 + EqualityComparer <string> .Default.GetHashCode(obj.Name);

                hash = hash * 23 + TypeInfoComparer.Default.GetHashCode(obj.DeclaringType);
                hash = hash * 23 + RuntimeBindingSignature.GetMethodSignature(obj).GetHashCode();
                return(hash);
            }
        }
        public MethodDefinition GetMethod(string name, CallingConventions callConv, params ITypeInfo[] types)
        {
            var signature = RuntimeBindingSignature.GetMethodSignature(name, callConv, types);

            return(_methodMapping.Get(signature));
        }