public static bool HasMatchingReturnType(this MethodSignature methodSignature, IMethodDeclaration methodDeclaration) { return(Equals(methodSignature.ReturnType, methodDeclaration.Type)); }
public static bool HasMatchingTypeParameters(this MethodSignature methodSignature, IMethodDeclaration methodDeclaration) { // We don't have any generic methods. So it's an error if anyone has any return(!methodDeclaration.TypeParameterDeclarations.Any()); }