コード例 #1
0
 public static bool HasMatchingReturnType(this MethodSignature methodSignature,
                                          IMethodDeclaration methodDeclaration)
 {
     return(Equals(methodSignature.ReturnType, methodDeclaration.Type));
 }
コード例 #2
0
 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());
 }