Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public static string GetIdentifierName(this InvocationExpressionSyntax invocationExpression) { return(invocationExpression.Expression switch { MemberAccessExpressionSyntax memberAccessExpression => memberAccessExpression.GetIdentifierName(), IdentifierNameSyntax identifierName => identifierName.Identifier.Text, GenericNameSyntax genericName => genericName.Identifier.Text, _ => null });