Exemplo n.º 1
0
 public DelcarationSpecificToBlockBodyRefactoring(IExpressionBodyHandler <TDeclaration> handler)
 {
     _handler = handler;
 }
Exemplo n.º 2
0
 public static string GetMemberName <TDeclaration>(this IExpressionBodyHandler <TDeclaration> handler, TDeclaration declaration, SemanticModel semanticModel)
     where TDeclaration : MemberDeclarationSyntax
 => semanticModel.GetDeclaredSymbol(declaration)?.Name
 ?? handler.GetIdentifierName(declaration);