Implement method name comparison.