예제 #1
0
        public static MethodDefinition TryMatchMethod(TypeDefinition type, MethodDefinition method)
        {
            if (!type.HasMethods)
            {
                return(null);
            }

            foreach (MethodDefinition candidate in type.Methods)
            {
                if (Helpers.MethodMatch(candidate, method))
                {
                    return(candidate);
                }
            }

            return(null);
        }