Ejemplo n.º 1
0
 public static bool MatchInvocation(this IOnMethodInvocation instance, IMethodSymbol methodSymbol)
 {
     return(instance.OnMethods.Contains($"{methodSymbol.ContainingType.Name}.{methodSymbol.Name}"));
 }
Ejemplo n.º 2
0
 public static bool MatchInvocation(this IOnMethodInvocation instance, IMethodSymbol methodSymbol, IEnumerable <string> methods)
 {
     return(methods.Contains($"{methodSymbol.ContainingType.Name}.{methodSymbol.Name}", StringComparer.Ordinal));
 }