public bool CanImplement(IMethodSymbol methodSymbol)
 {
     if (SymbolHelper.IsConstructor(methodSymbol))
     {
         return(false);
     }
     return(methodSymbol.Parameters.Length == 2 && methodSymbol.ReturnsVoid);
 }
示例#2
0
 public bool CanImplement(IMethodSymbol methodSymbol)
 {
     return(methodSymbol.Parameters.Length > 1 && SymbolHelper.IsConstructor(methodSymbol));
 }